1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

*** empty log message ***

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@63 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1998-02-03 10:02:57 +00:00
parent de0e5e35ae
commit 01bb9da7ac
12 changed files with 288 additions and 115 deletions

2
re.c
View file

@ -570,7 +570,7 @@ match_to_a(match)
int i;
for (i=0; i<regs->num_regs; i++) {
if (regs->beg[0] == -1) ary_push(ary, Qnil);
if (regs->beg[i] == -1) ary_push(ary, Qnil);
else ary_push(ary, str_new(ptr+regs->beg[i],
regs->end[i]-regs->beg[i]));
}