fix incorrect interpretation of 'eof in new find-string implementation

original commit: 13d7e264c4c78a0a029a4a1427b2130ac262d6be
This commit is contained in:
Robby Findler 2014-10-27 16:37:14 -05:00
parent 290b5c6893
commit 72ac3e8972

View File

@ -3559,7 +3559,7 @@
just-one? beginning-of-match? case-sens? recur-inside?)
(define end
(cond
[(equal? _end 'eof) (last-position)]
[(equal? _end 'eof) (if (equal? direction 'forward) (last-position) 0)]
[else _end]))
(define start
(cond