lib/kana_row.rb in kana_row-0.1.0 vs lib/kana_row.rb in kana_row-0.1.1
- old
+ new
@@ -41,10 +41,10 @@
kana = kana.katakana
end
row = kanas_map(include_special: include_special).find{|_, v| v.include?(kana) }&.first
row = MARKED_KANA_ROWS.fetch(row, row) if marked_to_plain
- row = row.hiragana if is_hiragana
+ row = row&.hiragana if is_hiragana
row
end
private