Closed camertron closed 10 years ago
It looks like [\da-z] results in an incorrect members array in CharacterSet. Consider the following example:
[\da-z]
CharacterSet
Regexp::Parser.parse('[\da-z]').expressions.first.members # => ["\\da", "-", "z"]
I think the array should contain a Digit object or '0-9' instead of the '\\d'.
Digit
'0-9'
'\\d'
Good catch. Thanks for the report.
I will be checking in a fix shortly but it might be a few more days before I make a new release.
It looks like
[\da-z]
results in an incorrect members array inCharacterSet
. Consider the following example:I think the array should contain a
Digit
object or'0-9'
instead of the'\\d'
.