add unicode emoji process
This commit is contained in:
parent
083a95e241
commit
b98183894c
1 changed files with 3 additions and 0 deletions
|
|
@ -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, "아아아")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue