Skip to content

Commit

Permalink
#28 typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 16, 2023
1 parent cb0cf1f commit 9fd5e63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bibcop.pl
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ sub fix_pages {
if ($value =~ /^[1-9][0-9]*$/) {
return $value;
}
my ($left, $right) = split(/---|-|—|\s/, $value);
my ($left, $right) = split(/---|--|-|—|\s/, $value);
$left =~ s/^0+//g;
$right =~ s/^0+//g;
return $left . '--' . $right;
Expand Down
1 change: 1 addition & 0 deletions perl-tests/fixing.pl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ package bibcop;
fixes('booktitle', 'Symposium on Computers', 'Proceedings of the Symposium on Computers');

fixes('pages', '13', '13');
fixes('pages', '196--230', '196--230');
fixes('pages', '100-110', '100--110');
fixes('pages', '2---33', '2--33');
fixes('pages', '22—23', '22--23');
Expand Down

0 comments on commit 9fd5e63

Please sign in to comment.