Skip to content
Permalink
Browse files

Add support for Korean

  • Loading branch information...
kyori19 committed Apr 16, 2019
1 parent 27e176b commit 8e1f70bbf935a068efc2beb85e7be744aba15171
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/lib/formatter.rb
@@ -189,7 +189,7 @@ def encode_custom_emojis(html, emojis, animate = false)
end

def nyaize(html)
html.gsub(/な/, "にゃ").gsub(/ナ/, "ニャ").gsub(/ナ/, "ニャ")
html.gsub(/な/, "にゃ").gsub(/ナ/, "ニャ").gsub(/ナ/, "ニャ").gsub(/[나-낳]/){|c|(c.ord + ''.ord - ''.ord).chr}
end

def rewrite(text, entities)

0 comments on commit 8e1f70b

Please sign in to comment.
You can’t perform that action at this time.