mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
The final offset was off in regexp-fold for regexps not ending in a match.
Fixes issue #203.
This commit is contained in:
parent
961e5e885b
commit
6f57182633
1 changed files with 1 additions and 1 deletions
|
@ -708,7 +708,7 @@
|
||||||
j
|
j
|
||||||
(kons (string-offset->index str from) md str acc)))))
|
(kons (string-offset->index str from) md str acc)))))
|
||||||
(else
|
(else
|
||||||
(finish (string-offset->index str i) #f str acc))))))
|
(finish (string-offset->index str from) #f str acc))))))
|
||||||
|
|
||||||
(define (regexp-extract rx str . o)
|
(define (regexp-extract rx str . o)
|
||||||
(apply regexp-fold
|
(apply regexp-fold
|
||||||
|
|
Loading…
Add table
Reference in a new issue