don't reject win32 filenames (Yappo)
Jonathan Rockway [Mon, 15 Dec 2008 10:35:25 +0000 (10:35 +0000)]
t/100_bugs/011_DEMOLISH_eats_exceptions.t

index 7574db7..31edb46 100644 (file)
@@ -11,7 +11,7 @@ use Moose::Util::TypeConstraints;
 
 subtype 'FilePath'
     => as 'Str'
-    => where { $_ =~ m#^(/[a-zA-Z0-9_.-]+)+$#
+    => where { $_ =~ m#^(/[a-zA-Z0-9_.-]+)+/?$#
                 || $_ =~ m#^([c-zC-Z]:/[a-zA-Z0-9_.-]+)# };
 {
     package Baz;