Navigation Menu

Skip to content

Commit

Permalink
use the public API rather than the literal regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Apr 29, 2012
1 parent 00b52f5 commit 1824c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test/CPAN/Changes.pm
Expand Up @@ -58,7 +58,7 @@ sub changes_file_ok {
$Test->diag( ' ERR: ' . $_->date );
return;
}
if ( $_->version !~ m{^$version::LAX$} ) {
if ( not version::is_lax($_->version) ) {
$Test->ok( 0, "$file contains an invalid version number" );
$Test->diag( ' ERR: ' . $_->version );
return;
Expand Down

0 comments on commit 1824c3b

Please sign in to comment.