add ㅊㅋㅊㅋ, ㅊㅊ replace

This commit is contained in:
kimpure 2026-05-21 14:02:23 +00:00
parent ec9e1da19d
commit d77f3694a6
No known key found for this signature in database

View file

@ -156,6 +156,12 @@ export function saferKorean(input: string): string {
.replace(/https\S+/g, "링크")
.replace(/ㅌ{2,}/g, "틔틔")
.replace(/ㄷ{2,}/g, "덜덜")
.replace(/(ㅊㅋ)+/g, (content: string) => {
return "추카".repeat(
Math.min(Math.floor(content.length / 2), 4)
);
})
.replace(/ㅊ{2,}/g, "추추")
.replace(/ㄱ+/g, (content: string) => {
if (content.length == 2) {
return "고고";