summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2016-12-31 22:50:39 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2016-12-31 22:51:39 +0900
commit872739f807500aa7341239bd6a065fb027c3cf8d (patch)
tree136e0ae285061cf5292ffd235a7c11ed49d4174f /src/web/app/common/scripts
parentUpdate calender (diff)
downloadsharkey-872739f807500aa7341239bd6a065fb027c3cf8d.tar.gz
sharkey-872739f807500aa7341239bd6a065fb027c3cf8d.tar.bz2
sharkey-872739f807500aa7341239bd6a065fb027c3cf8d.zip
Update nya converter
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/text-compiler.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js
index 62636939bf..f6c531c6ce 100644
--- a/src/web/app/common/scripts/text-compiler.js
+++ b/src/web/app/common/scripts/text-compiler.js
@@ -35,7 +35,9 @@ module.exports = function(tokens, shouldBreak, escape) {
if (me && me.data && me.data.nya) {
text = text.replace(/な/g, 'にゃ')
- .replace(/にゃでにゃで/g, 'なでなで');
+ .replace(/ニャ/g, 'にゃ')
+ .replace(/にゃでにゃで/g, 'なでなで')
+ .replace(/ニャデニャデ/g, 'ナデナデ');
}
return text;