add ㅊㅋㅊㅋ, ㅊㅊ replace
This commit is contained in:
parent
ec9e1da19d
commit
d77f3694a6
1 changed files with 6 additions and 0 deletions
|
|
@ -156,6 +156,12 @@ export function saferKorean(input: string): string {
|
||||||
.replace(/https\S+/g, "링크")
|
.replace(/https\S+/g, "링크")
|
||||||
.replace(/ㅌ{2,}/g, "틔틔")
|
.replace(/ㅌ{2,}/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) => {
|
.replace(/ㄱ+/g, (content: string) => {
|
||||||
if (content.length == 2) {
|
if (content.length == 2) {
|
||||||
return "고고";
|
return "고고";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue