Преглед изворни кода

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…
Откажи
Сачувај