瀏覽代碼

fix: fix wrong unicodechar regx (#23468)

tags/1.7.2
Good Wood 2 月之前
父節點
當前提交
eb12fd9461
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/service/base.ts

+ 1
- 1
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))
})
}

Loading…
取消
儲存