Project

General

Profile

Actions

Feature #1831

closed

Suggestion: warn on repeated character in character class

Added by candlerb (Brian Candler) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
[ruby-core:24593]

Description

=begin
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_DESCRIPTION
=> "ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]"
$WARN=true
=> true
"uber" =~ /[:lower:]/
=> 2
=end


Files

ruby-core-24593.patch (18.2 KB) ruby-core-24593.patch naruse (Yui NARUSE), 07/31/2009 08:00 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0