chore: remove deprecated usage of String.prototype.substr (#4699)
This commit is contained in:
@@ -42,7 +42,7 @@ export const decodeHtml: ParserOptions['decodeEntities'] = (
|
||||
)
|
||||
}
|
||||
for (let length = maxCRNameLength; !value && length > 0; --length) {
|
||||
name = rawText.substr(1, length)
|
||||
name = rawText.slice(1, 1 + length)
|
||||
value = (namedCharacterReferences as Record<string, string>)[name]
|
||||
}
|
||||
if (value) {
|
||||
|
||||
Reference in New Issue
Block a user