From a469ba400072766fdabb677bab208a4889ed20f7 Mon Sep 17 00:00:00 2001 From: syuilo⭐️ Date: Fri, 30 Dec 2016 12:27:50 +0900 Subject: Fix: Allow なでなで MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/app/common/scripts/text-compiler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/web/app/common/scripts') 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; -- cgit v1.2.3-freya