replace ?!\?! to single sign
This commit is contained in:
parent
bbc138d6a0
commit
9725d8de29
1 changed files with 1 additions and 2 deletions
|
|
@ -207,6 +207,5 @@ export function saferKorean(input: string): string {
|
||||||
.replace(/[\%\^\&\*\#\@\.\-\+\_\=\/\\♡\$]/g, (t) => (
|
.replace(/[\%\^\&\*\#\@\.\-\+\_\=\/\\♡\$]/g, (t) => (
|
||||||
SymbolMap[t as keyof typeof SymbolMap]
|
SymbolMap[t as keyof typeof SymbolMap]
|
||||||
))
|
))
|
||||||
.replace(/\?+/g, "?")
|
.replace(/([\?\!]+)/g, (_, content: string) => content[0])
|
||||||
.replace(/\!+/g, "!")
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue