Replace to_a[1..-1]
on a MatchData with captures
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da665b0234
commit
d83f9745f5
@ -57,7 +57,7 @@ class IO
|
||||
STDOUT.flush
|
||||
end
|
||||
if mat=e_pat.match(buf) then
|
||||
result = [buf,*mat.to_a[1..-1]]
|
||||
result = [buf,*mat.captures]
|
||||
break
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user