Skip to content

Commit

Permalink
empty range returns full kana
Browse files Browse the repository at this point in the history
  • Loading branch information
argot42 committed Oct 27, 2021
1 parent adcc6dd commit 7ced250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kana.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func genkana(ranges []Range) []Romanization {
{ "ピョ", "pyo", },
}

if ranges == nil {
if ranges == nil || len(ranges) == 0 {
return kana
}

Expand Down

0 comments on commit 7ced250

Please sign in to comment.