Bug fix for [...-] regexps.

This commit is contained in:
sperber 2001-07-10 11:23:00 +00:00
parent decf6184d9
commit e6a7699ef4
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@
;; Regular letter -- either alone, or startpoint of a range.
(else (if (and (< (+ i1 1) len)
(char=? #\- (string-ref s i1)))
(char=? #\- (string-ref s i1))
(not (char=? #\] (string-ref s (+ i1 1)))))
;; Range
(let* ((i-tochar (+ i1 1))