1
0
forked from mirror/misskey

Merge pull request #18 from syuilo/patch-2

Update nya converter
This commit is contained in:
syuilo⭐️ 2016-12-31 22:52:32 +09:00 committed by GitHub
commit 506b1646e8

View File

@ -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;