A new version of Regex-Core was added to project The Inbox: http://source.squeak.org/inbox/Regex-Core-tobe.60.mcz
==================== Summary ====================
Name: Regex-Core-tobe.60 Author: tobe Time: 12 August 2021, 11:27:45.831532 am UUID: 80ec8d3d-9a84-4928-be0e-1b65787f895b Ancestors: Regex-Core-ct.59
When an escaped character appeared in a charset, we did not handle adjacent ranges correctly
See RxParserTest>>testCharacterSetWithEscapedAndRange for examples.
=============== Diff against Regex-Core-ct.59 ===============
Item was changed: ----- Method: RxCharSetParser>>parseEscapeChar (in category 'parsing') ----- parseEscapeChar
+ | first | self match: $. + first := (RxsPredicate forEscapedLetter: lookahead) + ifNil: [ RxsCharacter with: lookahead ]. + self next == $- ifFalse: [^ elements add: first]. + self next ifNil: [ + elements add: first. + ^ self addChar: $-]. + self addRangeFrom: first character to: lookahead. - elements add: ((RxsPredicate forEscapedLetter: lookahead) - ifNil: [ RxsCharacter with: lookahead ]). self next!
squeak-dev@lists.squeakfoundation.org