diff --git a/web/service/base.ts b/web/service/base.ts index 8081899837..aa6c77716f 100644 --- a/web/service/base.ts +++ b/web/service/base.ts @@ -103,7 +103,7 @@ function unicodeToChar(text: string) { if (!text) return '' - return text.replace(/\\u[0-9a-f]{4}/g, (_match, p1) => { + return text.replace(/\\u([0-9a-f]{4})/g, (_match, p1) => { return String.fromCharCode(Number.parseInt(p1, 16)) }) }