mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
refactor(html): prepare for noUncheckedIndexedAccess
(#4297)
This commit is contained in:
parent
94d9e5b6fd
commit
34921103e4
@ -93,7 +93,7 @@ export function unescape(
|
||||
}
|
||||
|
||||
return str
|
||||
.replaceAll(entityRe, (m) => entityList[m])
|
||||
.replaceAll(entityRe, (m) => entityList[m]!)
|
||||
.replaceAll(RX_DEC_ENTITY, (_, dec) => codePointStrToChar(dec, 10))
|
||||
.replaceAll(RX_HEX_ENTITY, (_, hex) => codePointStrToChar(hex, 16));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user