Skip to content

Commit

Permalink
Make sure reading groups are not duplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Ahlström committed Jan 11, 2010
1 parent 34b40f8 commit 21b8870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/importers/jmdict.pl
Expand Up @@ -376,6 +376,7 @@ sub compile_reading_groups {
my $group = $groups->{$key};
if ( any { $_->{reading} eq $reading->{reading} } @{$group->{readings}} ) {
push @{$current->{reading_groups}}, $group;
delete $groups->{$key};
last;
}
}
Expand Down

0 comments on commit 21b8870

Please sign in to comment.