Skip to content

Commit

Permalink
#77 rename
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 15, 2024
1 parent 1bb5b95 commit d6b305e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bibcop.pl
Expand Up @@ -587,6 +587,7 @@ sub fix_author {
$author = $words[$total - 1] . ', ' . join(' ', @words[0 .. $total - 2]);
}
}
$author =~ s/^\s+|\s+$//g;
}
return join(' and ', @authors);
}
Expand Down Expand Up @@ -682,7 +683,7 @@ sub fix_journal {
return $value;
}

sub simplify_org_name {
sub fix_org_name {
my ($value) = @_;
my @orgs = qw/ACM IEEE/;
foreach my $org (@orgs) {
Expand All @@ -694,14 +695,14 @@ sub simplify_org_name {
sub fix_publisher {
my ($value) = @_;
$value = fix_capitalization($value);
$value = simplify_org_name($value);
$value = fix_org_name($value);
return $value;
}

sub fix_organization {
my ($value) = @_;
$value = fix_capitalization($value);
$value = simplify_org_name($value);
$value = fix_org_name($value);
return $value;
}

Expand Down

0 comments on commit d6b305e

Please sign in to comment.