Merge pull request #36 from Curiosidad-Racional/patch-1

The construct \d for any digit is not supported
This commit is contained in:
Masanao Igarashi
2017-10-05 07:53:56 +09:00
committed by GitHub

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)