On 1.8.7:
$ ruby -e ‘p “a”.match(/^(.*)+$/)[1]’
“a”
On jruby-head:
$ jruby --1.8 -e ‘p “a”.match(/^(.*)+$/)[1]’
“”
Does this count as a bug, given that it matches 1.9.2’s behaviour? I’ll
file it with a quick testcase if so.
Thanks,
Alex
On 1.8.7:
$ ruby -e ‘p “a”.match(/^(.*)+$/)[1]’
“a”
On jruby-head:
$ jruby --1.8 -e ‘p “a”.match(/^(.*)+$/)[1]’
“”
Does this count as a bug, given that it matches 1.9.2’s behaviour? I’ll
file it with a quick testcase if so.
Alex
JRuby has only one Regular Expression engine, and it doesn’t change
behavior in 1.8 or 1.9 mode.
Hirotsugu A. wrote in post #967191:
JRuby has only one Regular Expression engine, and it doesn’t change
behavior in 1.8 or 1.9 mode.
Ok, no bug filing for me today then
–
Alex
Alex Y. wrote in post #967193:
Hirotsugu A. wrote in post #967191:
JRuby has only one Regular Expression engine, and it doesn’t change
behavior in 1.8 or 1.9 mode.Ok, no bug filing for me today then
I have (briefly) documented this here:
http://kenai.com/projects/jruby/pages/DifferencesBetweenMriAndJruby
–
Alex
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs