joni regex inconsistency
------------------------
Key: JRUBY-1755
URL: http://jira.codehaus.org/browse/JRUBY-1755
Project: JRuby
Issue Type: Bug
Environment: windows, java 1.6, jruby rev 5303, mri 1.8.6, mysql 5.1,
rails 2.02
Reporter: Alex Durgin
Assignee: Thomas E Enebo
I've noticed something odd with jruby regex operations that wasn't occuring
before joni/rails 2 final. I think it has something to do with rails multibyte
but an operation like the following is vastly different in jirb and the rails
console, with the rails console output being horribly wrong.
Rails console: "Let's go have a beer".gsub(/[^a-z0-9]+/i, '-')
output: -e----g--ha-e-a-bee-
"Let's go have a beer".gsub(/[^\w]/i, '-') works just fine though. (note the \w)
The same command in jirb works fine in both cases.
--
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