add ㄱㄱㄱ replace 고고고
This commit is contained in:
parent
9725d8de29
commit
4a6eea1900
1 changed files with 2 additions and 0 deletions
|
|
@ -153,6 +153,8 @@ export function saferKorean(input: string): string {
|
|||
.replace(/ㄱ+/g, (content: string) => {
|
||||
if (content.length == 2) {
|
||||
return "고고";
|
||||
} else if (content.length == 3) {
|
||||
return "고고고";
|
||||
}
|
||||
return content;
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue