replace ?!\?! to single sign

This commit is contained in:
kimpure 2026-05-21 13:37:27 +00:00
parent bbc138d6a0
commit 9725d8de29
No known key found for this signature in database

View file

@ -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, "!")
} }