Bug fix for [...-] regexps.
This commit is contained in:
parent
decf6184d9
commit
e6a7699ef4
|
@ -140,7 +140,8 @@
|
||||||
|
|
||||||
;; Regular letter -- either alone, or startpoint of a range.
|
;; Regular letter -- either alone, or startpoint of a range.
|
||||||
(else (if (and (< (+ i1 1) len)
|
(else (if (and (< (+ i1 1) len)
|
||||||
(char=? #\- (string-ref s i1)))
|
(char=? #\- (string-ref s i1))
|
||||||
|
(not (char=? #\] (string-ref s (+ i1 1)))))
|
||||||
|
|
||||||
;; Range
|
;; Range
|
||||||
(let* ((i-tochar (+ i1 1))
|
(let* ((i-tochar (+ i1 1))
|
||||||
|
|
Loading…
Reference in New Issue