Bug #3539

Invalid Hex Escape Triggers Three Warnings in Regexp

Added by Run Paint Run Run about 5 years ago. Updated over 4 years ago.

[ruby-core:31048]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:ruby 1.9.3dev (2010-07-03 trunk 28530) [i686-linux] Backport:

Description

=begin
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

=end

History

#1 Updated by Nobuyoshi Nakada almost 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28917.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF