String extracted with a regular expression cannot be used as pattern in 
File.fnmatch
------------------------------------------------------------------------------------

                 Key: JRUBY-1986
                 URL: http://jira.codehaus.org/browse/JRUBY-1986
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC1
            Reporter: Assaf Arkin


File.fnmatch('bar', 'bar')
=> true
'foobar'[/foo(.*)/, 1]
=> "bar"
File.fnmatch('foobar'[/foo(.*)/, 1], 'bar')
=> false

Should be true, since the extracted string is "bar".

-- 
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

Reply via email to