projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5c6c94
)
Bug reported by Arthur: case-fold-string was dropping tail of string.
author
Chris Hanson
<org/chris-hanson/cph>
Thu, 25 Oct 2018 21:21:08 +0000
(14:21 -0700)
committer
Chris Hanson
<org/chris-hanson/cph>
Thu, 25 Oct 2018 21:21:08 +0000
(14:21 -0700)
src/runtime/rexp.scm
patch
|
blob
|
history
diff --git
a/src/runtime/rexp.scm
b/src/runtime/rexp.scm
index 07afb527d535d6e7c46b3b7174ff9e3dbd716102..cb679023381654368182da409bb7e6f6e283e11b 100644
(file)
--- a/
src/runtime/rexp.scm
+++ b/
src/runtime/rexp.scm
@@
-224,10
+224,12
@@
USA.
(string (char-upcase char))
(string (char-downcase char))
"]"))
- (re-quote-string
- (substring s start index))
+ (re-quote-string (substring s start index))
parts))
- (apply string-append (reverse! parts)))))))
+ (apply string-append
+ (reverse!
+ (cons (re-quote-string (substring s start end))
+ parts))))))))
(define (case-fold-char-set c)
(let loop ((chars (char-set-members c)) (chars* '()))