Regexp#to_s adds option flags whether or not the regex already has them
-----------------------------------------------------------------------
Key: JRUBY-1296
URL: http://jira.codehaus.org/browse/JRUBY-1296
Project: JRuby
Issue Type: Bug
Reporter: Dudley Flanders
Assignee: Thomas E Enebo
Regexp#to_s adds an option group to every regexp it stringifies, even if the
regexp was created with an option group:
{noformat}
>> r = Regexp.new('x').to_s
=> "(?-mix:x)"
>> Regexp.new(r).to_s
=> "(?-mix:(?-mix:x))"
{noformat}
--
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