refactor: includes instead of indexOf (#5117)

This commit is contained in:
btea
2022-01-21 01:36:48 -06:00
committed by GitHub
parent c64907d261
commit 63210fe41a
4 changed files with 7 additions and 7 deletions

View File

@@ -1044,7 +1044,7 @@ function parseTextData(
if (
mode === TextModes.RAWTEXT ||
mode === TextModes.CDATA ||
rawText.indexOf('&') === -1
!rawText.includes('&')
) {
return rawText
} else {