[MacRuby] #1309: regexp with large number of captures is unable to deal with
#1309: regexp with large number of captures is unable to deal with ----------------------------------+----------------------------------------- Reporter: chris@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- I'm parsing a large, fixed-length-delimited string for its fields, and I noticed that capture groups past $37 aren't working. I can code around this, of course, but I figured I'd better report it too. I've attached a text file with an example string, the regex, and how to reproduce this. You can cut-n-paste directly into macirb. The parsing *does* work correctly in "regular" Ruby 1.9.2 irb, and it parses correctly at rubular.com (just as a confirmation). But the parsing fails in macirb. -- Ticket URL: <http://www.macruby.org/trac/ticket/1309> MacRuby <http://macruby.org/>
#1309: regexp with large number of captures is unable to deal with ----------------------------------+----------------------------------------- Reporter: chris@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Indeed: {{{ $ cat t.rb re=Regexp.new('(.)'*40); md=File.read('GPL').match(re); p $38 $ ./miniruby t.rb " Copyright (C) 1989, 1991 Free Software " }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1309#comment:1> MacRuby <http://macruby.org/>
#1309: regexp with large number of captures is unable to deal with ----------------------------------+----------------------------------------- Reporter: chris@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.11 Comment: Should be fixed in https://github.com/MacRuby/MacRuby/commit/f2d8a2b18cff0e80d1f436230f9dbb6d9e... -- Ticket URL: <http://www.macruby.org/trac/ticket/1309#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby