Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
jruby-1.6.7 :001 > '2300' =~ /\A(([0-1][0-9])|([2][0-3]))[0-5][0-9]\z/ => 0
jruby-1.7.0.dev :001 > '2300' =~ /A(([0-1][0-9])|([2][0-3]))[0-5][0-9]z/ => nil
Activity
Hiro Asari
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Summary | regex returns nil instead of 0 on match | In IRB, backslashes in literal regular expressions are gobbled |
| Description |
jruby-1.6.7 :001 > '2300' =~ /\A(([0-1][0-9])|([2][0-3]))[0-5][0-9]\z/
=> 0 jruby-1.7.0.dev :001 > '2300' =~ /A(([0-1][0-9])|([2][0-3]))[0-5][0-9]z/ => nil |
{noformat}
jruby-1.6.7 :001 > '2300' =~ /\A(([0-1][0-9])|([2][0-3]))[0-5][0-9]\z/ => 0 {noformat} {noformat} jruby-1.7.0.dev :001 > '2300' =~ /A(([0-1][0-9])|([2][0-3]))[0-5][0-9]z/ => nil {noformat} |
Hiro Asari
made changes -
| Summary | In IRB, backslashes in literal regular expressions are gobbled | In IRB, backslashes are gobbled in the eval loop |
Hiro Asari
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Thomas E Enebo [ enebo ] | Hiro Asari [ asari ] |
| Fix Version/s | JRuby 1.7 [ 17049 ] | |
| Resolution | Fixed [ 1 ] |