summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-06-24 22:20:13 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-06-24 22:20:13 +0900
commitbc83963ac73c594674e97b00578e618e8450ed8b (patch)
treed836aac7dbcd8653a35ac2de04acb91d1ded2649 /src
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-bc83963ac73c594674e97b00578e618e8450ed8b.tar.gz
sharkey-bc83963ac73c594674e97b00578e618e8450ed8b.tar.bz2
sharkey-bc83963ac73c594674e97b00578e618e8450ed8b.zip
English nyaize
Diffstat (limited to 'src')
-rw-r--r--src/misc/nyaize.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc/nyaize.ts b/src/misc/nyaize.ts
index 918e7d63fd..38c7101766 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)