Skip to content

Commit 717120b

Browse files
committed
#138 fixed
1 parent 2058fd0 commit 717120b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bibcop.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ sub check_month {
463463
my (%entry) = @_;
464464
if (exists $entry{'month'}) {
465465
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$/) {
467467
return "The format of the 'month' is wrong"
468468
}
469469
}

perl-tests/checks.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ package bibcop;
127127
$f = 'check_month';
128128
check_fails($f, ('month' => 'January'));
129129
check_fails($f, ('month' => '01'));
130-
check_passes($f, ('month' => 'jan'));
130+
check_fails($f, ('month' => 'jan'));
131131
check_passes($f, ('month' => '1'));
132132
check_passes($f, ('month' => '12'));
133133

0 commit comments

Comments
 (0)