Skip to content

Commit

Permalink
#74 ACM simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 15, 2024
1 parent f53392d commit 7d14050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions bibcop.pl
Expand Up @@ -675,6 +675,7 @@ sub fix_journal {
sub fix_publisher {
my ($value) = @_;
$value = fix_capitalization($value);
$value =~ s/^ACM($|[^A-Z0-9a-z].*$)/ACM/g;
return $value;
}

Expand Down
3 changes: 3 additions & 0 deletions perl-tests/fixing.pl
Expand Up @@ -44,6 +44,9 @@ package bibcop;
fixes('booktitle', 'Symposium on Computers', 'Proceedings of the Symposium on Computers');
fixes('booktitle', 'Proceedings of the 2014 7th Conference', 'Proceedings of the 7th Conference');

fixes('publisher', 'ACM New York, NY, USA', 'ACM');
fixes('publisher', 'ACME', 'ACME');

fixes('pages', '13', '13');
fixes('pages', '13-', '13');
fixes('pages', '13--', '13');
Expand Down

0 comments on commit 7d14050

Please sign in to comment.