Joni matches [^\w] incorrectly, and differently to MRI/187
----------------------------------------------------------
Key: JRUBY-4488
URL: http://jira.codehaus.org/browse/JRUBY-4488
Project: JRuby
Issue Type: Bug
Reporter: Daniel Lucraft
Assignee: Thomas E Enebo
Priority: Minor
On JRuby:
>> " " =~ /(\s|[^\w]){2,}/
=> 0
On MRI 187
>> " " =~ /(\s|[^\w]){2,}/
=> nil
MRI seems to be the right behaviour here. (That's a single space in the string
btw)
Some emails from Vladimir on this bug:
------
Hi Daniel,
This looks like a JRuby bug to me. Please file it.
I've looked in previous JRuby releases to see whether this is a
regression or not. And indeed, this behavior was introduced in 1.1.4
timeframe, commit 86a86623daab2826cc8bd29547e06cbd9038ca2b:
"Update joni on trunk to match last released joni so 1.1.4 build
matches build made by maven"
So it does look like a joni-related problem.
Thanks,
--Vladimir
-----
and
-----
Some more info. The actual joni commit that causes this is:
929b9fd92377e630d47138b2b478c3b79bab0243
"Merge asmified branch into joni trunk."
right before joni 1.0.3 release.
Unfortunately, the commit is rather big, so it is not immediately
obvious where's the problem. Let's ping Marcin over IRC to figure that
out :)
Thanks,
--Vladimir
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email