Skip to content

Commit

Permalink
bug fix; should only apply rule when it applies lol
Browse files Browse the repository at this point in the history
  • Loading branch information
kscanne committed Dec 14, 2019
1 parent 045a8bf commit 5f25225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipa.pl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ sub strip_suffixes {
my $repl = $rule->[0];
my $ans = $t;
$ans =~ s/$tomatch$/$repl/;
if (exists($ipa{$ans})) {
if (exists($ipa{$ans}) and $ipa{$ans} =~ m/$rule->[2]$/) {
$suffixrule = $rule;
return $ans;
}
Expand Down

0 comments on commit 5f25225

Please sign in to comment.