diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2016-12-30 12:27:50 +0900 |
|---|---|---|
| committer | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2016-12-30 12:27:50 +0900 |
| commit | a469ba400072766fdabb677bab208a4889ed20f7 (patch) | |
| tree | d59132e4155e62104ee47f46d144ea764d30aee3 /src/web/app/common/scripts | |
| parent | Add nya filter (diff) | |
| download | sharkey-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.js | 3 |
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; |