Bug #3539: Invalid Hex Escape Triggers Three Warnings in Regexp
http://redmine.ruby-lang.org/issues/show/3539

Author: Run Paint Run Run
Status: Open, Priority: Low
Category: core, Target version: 1.9.x
ruby -v: ruby 1.9.3dev (2010-07-03 trunk 28530) [i686-linux]

Terribly minor, but three warnings for the same problem is slightly excessive:

    run@paint:~ ???  ruby -ve '_ = /\x/'
    ruby 1.9.3dev (2010-07-03 trunk 28530) [i686-linux]
    -e:1: invalid hex escape
    _ = /\x/
       ^
    -e:1: Invalid escape character syntax
    _ = /\x/
       ^
    -e:1: syntax error, unexpected $end


----------------------------------------
http://redmine.ruby-lang.org