summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo⭐️ <Syuilotan@yahoo.co.jp>2016-12-30 12:27:50 +0900
committersyuilo⭐️ <Syuilotan@yahoo.co.jp>2016-12-30 12:27:50 +0900
commita469ba400072766fdabb677bab208a4889ed20f7 (patch)
treed59132e4155e62104ee47f46d144ea764d30aee3 /src/web/app/common/scripts
parentAdd nya filter (diff)
downloadsharkey-a469ba400072766fdabb677bab208a4889ed20f7.tar.gz
sharkey-a469ba400072766fdabb677bab208a4889ed20f7.tar.bz2
sharkey-a469ba400072766fdabb677bab208a4889ed20f7.zip
Fix: Allow なでなで
Diffstat (limited to 'src/web/app/common/scripts')
-rw-r--r--src/web/app/common/scripts/text-compiler.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/app/common/scripts/text-compiler.js b/src/web/app/common/scripts/text-compiler.js
index 41f4966682..e08ef74417 100644
--- a/src/web/app/common/scripts/text-compiler.js
+++ b/src/web/app/common/scripts/text-compiler.js
@@ -34,7 +34,8 @@ module.exports = function(tokens, canBreak, escape) {
}).join('');
if (me && me.data && me.data.nya) {
- text = text.replace(/な/g, 'にゃ');
+ text = text.replace(/な/g, 'にゃ')
+ .replace(/にゃでにゃで/g, 'なでなで');
}
return text;