Permalink
Browse files

Update EnumMap.ACCEPTS(Regex), removing another nom regression.

  • Loading branch information...
pmichaud committed Jun 22, 2012
1 parent 5f0f3f0 commit 1b6636f7d8e71b81e512280218226fdb44f34c35
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/EnumMap.pm
View
@@ -20,6 +20,10 @@ my class EnumMap does Associative {
multi method ACCEPTS(EnumMap:D: Positional $topic) {
so self.exists($topic.any);
}
+
+ multi method ACCEPTS(EnumMap:D: Regex $topic) {
+ so self.keys.any.match($topic);
+ }
proto method exists(|$) {*}
multi method exists(EnumMap:D: Str:D \$key) {

0 comments on commit 1b6636f

Please sign in to comment.