Xuân Baldauf created JRUBY-6604:
-----------------------------------

             Summary: Cannot programmatically create regular expression 
/[\\x80]/n
                 Key: JRUBY-6604
                 URL: https://jira.codehaus.org/browse/JRUBY-6604
             Project: JRuby
          Issue Type: Bug
          Components: Compiler, Parser
    Affects Versions: JRuby 1.6.7
            Reporter: Xuân Baldauf


In the expression "/#{a}/n", apparently the "n" flag is ignored, while it 
should be honoured.

{noformat} 
# jruby --1.9 -S irb
irb(main):001:0> a = '[\\x80]'
=> "[\\x80]"
irb(main):002:0> b = /(?:#{a})/n
=> /(?:[\x80])/
irb(main):003:0> c = /#{a}/n
RegexpError: (RegexpError) invalid multibyte escape: /[\x80]/
{noformat} 



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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


Reply via email to