1
0
mirror of https://github.com/m00natic/vlfi.git synced 2024-10-05 18:30:51 +01:00

Use xdigit regex class in vlf-hexl-adjust-addresses.

This commit is contained in:
Andrey Kotlarski 2014-12-27 02:34:57 +02:00
parent 726f50bf34
commit fd90b3a6b1

View File

@ -199,7 +199,7 @@ FILE-NAME if given is to be used instead of `buffer-file-name'."
(let ((pos (point))
(address vlf-start-pos))
(goto-char (point-min))
(while (re-search-forward "^[0-9a-f]+" nil t)
(while (re-search-forward "^[[:xdigit:]]+" nil t)
(replace-match (format "%08x" address))
(setq address (+ address hexl-bits)))
(goto-char pos)))