Suggestion: warn on repeated character in character class
Suggestion: warn if the same character appears more than once in a character class (or more restrictedly: if the character ':' appears both at the start and end of a character class)
This is to give some indication of the problem if you do the following:
=> "ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]"
"uber" =~ /[:lower:]/
That should have said $VERBOSE=true, but it makes no difference
- File ruby-core-24593_1_.patch added
I'm interested in your suggestion, and wrote a patch.
- File deleted (
Matz, can I commit this patch?
In message "Re: [ruby-core:24627] [Feature #1831] Suggestion: warn on repeated character in character class"
on Fri, 31 Jul 2009 08:01:30 +0900, Yui NARUSE firstname.lastname@example.org writes:
|Matz, can I commit this patch?
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied in changeset r24387.
Also available in: Atom