File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3019,7 +3019,8 @@ sub parse_version {
30193019 $result = $normal if defined $normal ;
30203020 }
30213021 if ( defined $result ) {
3022- $result = " undef" unless $result =~ m ! ^[\d _\.\- ] +$ ! or eval { version-> parse( $result ) };
3022+ $result = " undef" unless $result =~ m ! ^v?[\d _\.\- ] +$ !
3023+ or eval { version-> parse( $result ) };
30233024 }
30243025 $result = " undef" unless defined $result ;
30253026 return $result ;
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ my %versions = (q[$VERSION = '1.00'] => '1.00',
4444 ' $VERSION = substr(q$Revision: 2.8 $, 10) + 2 . "";' => ' 4.8' ,
4545 q[ our $VERSION = do { my @r = ( q$Revision: 2.7 $ =~ /\d+/g ); sprintf "%d." . "%02d" x $#r, @r };] => ' 2.07' , # Fucking seriously?
4646 ' elsif ( $Something::VERSION >= 1.99 )' => undef ,
47- q[ our $VERSION = "1.00 / the fucking fuck";] => ' undef' ,
4847 );
4948
5049if ( $Has_Version ) {
@@ -65,6 +64,7 @@ if( "$]" >= 5.011001 ) {
6564 $versions {' package Foo 1.23_01;' } = ' 1.23_01' ;
6665 $versions {' package Foo v1.23_01;' } = ' v1.23_01' ;
6766 $versions {q[ "package Foo 1.23"] } = undef ;
67+ $versions {q[ our $VERSION = "1.00 / the fucking fuck";] } = ' undef' ;
6868 $versions {<<'END' } = ' 1.23' ;
6969package Foo 1.23;
7070our $VERSION = 2.34;
You can’t perform that action at this time.
0 commit comments