diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2016-12-31 22:52:32 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-31 22:52:32 +0900 |
| commit | 506b1646e8515c9a4f2ba404b15f7f9030e83dcf (patch) | |
| tree | 136e0ae285061cf5292ffd235a7c11ed49d4174f /src/web/app/common/scripts | |
| parent | Update calender (diff) | |
| parent | Update nya converter (diff) | |
| download | misskey-506b1646e8515c9a4f2ba404b15f7f9030e83dcf.tar.gz misskey-506b1646e8515c9a4f2ba404b15f7f9030e83dcf.tar.bz2 misskey-506b1646e8515c9a4f2ba404b15f7f9030e83dcf.zip | |
Merge pull request #18 from syuilo/patch-2
Update nya converter
Diffstat (limited to 'src/web/app/common/scripts')
| -rw-r--r-- | src/web/app/common/scripts/text-compiler.js | 4 |
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; |