The construct \d for any digit is not supported

The construct \d for any digit is not supported, use [0-9] or [:digit:] instead

https://www.emacswiki.org/emacs/RegularExpression
This commit is contained in:
Curiosidad-Racional
2017-10-04 20:35:32 +02:00
committed by GitHub
parent 70f1559171
commit 47d52f23ff

View File

@@ -1085,7 +1085,7 @@ contextual information."
;; Protect ..
(setq text (replace-regexp-in-string "^[\s-]*\\.\\. [^\\[]" "\\\\.. " text))
;; Protect ^\d+.
(setq text (replace-regexp-in-string "^\\(\\d\\)+\\." "\\1\\." text))
(setq text (replace-regexp-in-string "^\\([[:digit:]]\\)+\\." "\\1\\." text))
;; Return value.
text)