Browse files

fix regex. requires perl 5.10.0

  • Loading branch information...
1 parent c85e286 commit 4768471b582cf4ee0171e7830b54c160be21bd03 @bricas bricas committed Apr 12, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 Makefile.PL
  2. +1 −1 lib/CPAN/Changes.pm
  3. +1 −1 t/self.t
View
2 Makefile.PL
@@ -4,7 +4,7 @@ if ( -e 'MANIFEST.SKIP' ) {
system( 'pod2text lib/CPAN/Changes.pm > README' );
}
-perl_version '5.008';
+perl_version '5.010';
name 'CPAN-Changes';
all_from 'lib/CPAN/Changes.pm';
View
2 lib/CPAN/Changes.pm
@@ -114,7 +114,7 @@ sub load_string {
}
# start with W3CDTF, ignore rest
- elsif ( $d =~ m{^($W3CDTF_REGEX)(?: \D+)$}) {
+ elsif ( $d =~ m{^($W3CDTF_REGEX)}p ) {
$d = ${^MATCH};
}
}
View
2 t/self.t
@@ -1,7 +1,7 @@
use strict;
use warnings;
-use Test::More tests => 18;
+use Test::More tests => 19;
use_ok( 'CPAN::Changes' );

0 comments on commit 4768471

Please sign in to comment.