[MacRuby] #739: String#match calls block twice
#739: String#match calls block twice ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- {{{ $ macruby -e '"# On branch master".match( /.*On branch (\S*)$/ ) { |m| p m[1] }' }}} gives {{{ "master" "a" }}} ruby1.9 works: {{{ $ ruby1.9 -e '"# On branch master".match( /.*On branch (\S*)$/ ) { |m| p m[1] }' }}} {{{ "master" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/739> MacRuby <http://macruby.org/>
#739: String#match calls block twice ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------+----------------------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed Comment: Thanks for the report! This is fixed with r4212: {{{ $> ./miniruby -e '"# On branch master".match( /.*On branch (\S*)$/ ) { |m| p m[1] }' "master" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/739#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby