chore: remove 'nA' -> 'nYA' conversion in nyaification

This commit is contained in:
naskya 2024-01-13 15:45:19 +09:00
parent 82869b4022
commit 7c309e371d
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 5 additions and 1 deletions

View file

@ -45,6 +45,8 @@
## 細かい変更点
- 猫語で "nA" を "nYA" に置換しない
- この置き換えはあまり嬉しくないことが多い
- `reset-db` という API を無効化
- エンドポイント自体は残してありますが、叩いても何もしません
- データベースをリセットする API って何?怖すぎる

View file

@ -9,7 +9,9 @@ export default function (
.replaceAll("ナ", "ニャ")
.replaceAll("ナ", "ニャ")
// en-US
.replace(/(?<=n)a/gi, (x) => (x === "A" ? "YA" : "ya"))
.replaceAll("na", "nya")
.replaceAll("Na", "Nya")
.replaceAll("NA", "NYA")
.replace(/(?<=morn)ing/gi, (x) => (x === "ING" ? "YAN" : "yan"))
.replace(/(?<=every)one/gi, (x) => (x === "ONE" ? "NYAN" : "nyan"))
.replace(/non(?=[bcdfghjklmnpqrstvwxyz])/gi, (x) =>