- added a regex for Win32 for the FilePath subtype; the regex was added to the
Brian Manning [Sat, 10 May 2008 04:28:52 +0000 (04:28 +0000)]
  'where' clause and OR'ed with the existing regex

t/100_bugs/011_DEMOLISH_eats_exceptions.t

index 17465f2..10262f6 100644 (file)
@@ -14,8 +14,8 @@ BEGIN {
 
 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;
     use Moose;