Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix Match.caps again; I have no idea why it's a fix, but it is. Weird.
  • Loading branch information
moritz committed May 29, 2010
1 parent 5c62b61 commit 9581e6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Match.pm
Expand Up @@ -54,7 +54,9 @@ class Match is Regex::Match is Cool does Associative {
# in regexes like [(.) ...]+, the capture for (.) is
# a List. flatten that.
if $p.value ~~ Array {
take ($p.key => $_) for @($p.value);
for $p.value.list {
take $p.key => $_;
}
} else {
take $p;
}
Expand Down

0 comments on commit 9581e6a

Please sign in to comment.