Fixed a bug in the construction of the regexp for [...] backet globs.

Reported by Harvey Stein.
    -Olin
This commit is contained in:
olin-shivers 2001-05-23 22:32:35 +00:00
parent b6cede2c28
commit b0d2b0e318
1 changed files with 2 additions and 3 deletions

View File

@ -122,10 +122,9 @@
(cons re-any (str-cons chars res)) (cons re-any (str-cons chars res))
i)) i))
((#\[) (receive (cset i) (parse-glob-bracket pat i) ((#\[) (receive (re i) (parse-glob-bracket pat i)
(lp '() (lp '()
(cons (re-char-set cset) (cons re (str-cons chars res))
(str-cons chars res))
i))) i)))
(else (lp (cons c chars) res i)))))))))) (else (lp (cons c chars) res i))))))))))