Skip to content

Commit

Permalink
refactor(html): prepare for noUncheckedIndexedAccess (#4297)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabelluardo authored Feb 12, 2024
1 parent 94d9e5b commit 3492110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 3492110

Please sign in to comment.