lib/romaji.rb in romaji-0.1.5 vs lib/romaji.rb in romaji-0.1.6
- old
+ new
@@ -19,10 +19,10 @@
pos += 1
next
end
# ッ
- if chars[pos] == chars[pos + 1] && !['a', 'i', 'u', 'e', 'o', 'n'].include?(chars[pos])
+ if chars[pos] == chars[pos + 1] && !['a', 'i', 'u', 'e', 'o', 'n'].include?(chars[pos]) && chars[pos] =~ /[a-z]/
kana += 'ッ'
pos += 1
next
end