The Object type constraint filters out Regexp
Shawn M Moore [Thu, 25 Jun 2009 04:13:38 +0000 (00:13 -0400)]
lib/Moose/Util/TypeConstraints.pm

index d9a1dd3..9ad9c2e 100644 (file)
@@ -372,7 +372,6 @@ sub duck_type {
             sub {
                 my $obj = $_;
                 my $class = blessed($obj) || return;
-                return if $class eq 'Regexp';
                 return 0 unless all { $obj->can($_) } @methods;
                 return 1;
             },