Commit 717120b 1 parent 2058fd0 commit 717120b Copy full SHA for 717120b
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ sub check_month {
463
463
my (%entry ) = @_ ;
464
464
if (exists $entry {' month' }) {
465
465
my $month = $entry {' month' };
466
- if (not $month =~ / ^[1-9]|10|11|12|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec $ / ) {
466
+ if (not $month =~ / ^[1-9]|10|11|12$ / ) {
467
467
return " The format of the 'month' is wrong"
468
468
}
469
469
}
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ package bibcop;
127
127
$f = ' check_month' ;
128
128
check_fails($f , (' month' => ' January' ));
129
129
check_fails($f , (' month' => ' 01' ));
130
- check_passes ($f , (' month' => ' jan' ));
130
+ check_fails ($f , (' month' => ' jan' ));
131
131
check_passes($f , (' month' => ' 1' ));
132
132
check_passes($f , (' month' => ' 12' ));
133
133
You can’t perform that action at this time.
0 commit comments