lib/romaji.rb in romaji-0.1.0 vs lib/romaji.rb in romaji-0.1.1

- old
+ new

@@ -69,10 +69,10 @@ end # ッ if chars[pos] == 'ッ' next_char_romaji = KANA2ROMAJI[chars[pos + 1]] - if ['a', 'i', 'u', 'e', 'o', 'n', nil].include?(chars[pos + 1]) + if ['a', 'i', 'u', 'e', 'o', 'n', nil].include?(chars[pos + 1]) || next_char_romaji.nil? romaji += 'xtsu' else romaji += (next_char_romaji[0].slice(0,1)) end pos += 1