[MacRuby] #948: MacRuby should match with Regexp, distinguish between '\r' and '\n'.
#948: MacRuby should match with Regexp, distinguish between '\r' and '\n'. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ p /^bar/.match("foo\rbar") # => nil p /^bar/.match("foo\nbar") p /^bar/.match("foo\r\nbar") p "--" p /foo$/.match("foo\rbar") # => nil p /foo$/.match("foo\nbar") p /foo$/.match("foo\r\nbar") # => nil }}} Result: {{{ $ ruby19 test_regexp.rb nil #<MatchData "bar"> #<MatchData "bar"> "--" nil #<MatchData "foo"> nil $ macruby test_regexp.rb #<MatchData "bar"> #<MatchData "bar"> #<MatchData "bar"> "--" #<MatchData "foo"> #<MatchData "foo"> #<MatchData "foo"> }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/948> MacRuby <http://macruby.org/>
#948: MacRuby should match with Regexp, distinguish between '\r' and '\n'. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): I believe that's an ICU limitation. Not sure if it's worth fixing in MacRuby. -- Ticket URL: <http://www.macruby.org/trac/ticket/948#comment:1> MacRuby <http://macruby.org/>
#948: MacRuby should match with Regexp, distinguish between '\r' and '\n'. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby Later Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby Later Comment: For Later. -- Ticket URL: <http://www.macruby.org/trac/ticket/948#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby