From bc83963ac73c594674e97b00578e618e8450ed8b Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 24 Jun 2019 22:20:13 +0900 Subject: [PATCH] English nyaize --- src/misc/nyaize.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/misc/nyaize.ts b/src/misc/nyaize.ts index 918e7d63f..38c710176 100644 --- a/src/misc/nyaize.ts +++ b/src/misc/nyaize.ts @@ -2,6 +2,8 @@ export function nyaize(text: string): string { return text // ja-JP .replace(/な/g, 'にゃ').replace(/ナ/g, 'ニャ').replace(/ナ/g, 'ニャ') + // en-US + .replace(/morning/gi, 'mornyan').replace(/everyone/gi, 'everynyan') // ko-KR .replace(/[나-낳]/g, match => String.fromCharCode( match.codePointAt(0)! + '냐'.charCodeAt(0) - '나'.charCodeAt(0)