add unicode emoji process

This commit is contained in:
kimpure 2026-05-21 14:51:35 +00:00
parent 083a95e241
commit b98183894c
No known key found for this signature in database

View file

@ -177,6 +177,9 @@ export function saferKorean(input: string): string {
return "링크"; return "링크";
}) })
// Process emoji
.replace(/\p{Emoji}/u, " ")
// Process koreans // Process koreans
.replace(/ㅋ{2,}/g, (content) => "크".repeat(content.length)) .replace(/ㅋ{2,}/g, (content) => "크".repeat(content.length))
.replace(/[아ㅏ]{3,}/g, "아아아") .replace(/[아ㅏ]{3,}/g, "아아아")