Procházet zdrojové kódy

fix: fix wrong unicodechar regx (#23468)

tags/1.7.2
Good Wood před 2 měsíci
rodič
revize
eb12fd9461
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      web/service/base.ts

+ 1
- 1
web/service/base.ts Zobrazit soubor

@@ -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))
})
}

Načítá se…
Zrušit
Uložit