Fix several lints (#19121)

This commit is contained in:
Jarred Sumner
2025-04-19 05:41:34 -07:00
committed by GitHub
parent 7e8e559fce
commit 032713c58c
70 changed files with 906 additions and 1280 deletions

View File

@@ -806,7 +806,7 @@ export class DraculaSyntaxHighlighter {
// Check for NPM token
if (str.startsWith("npm_") && str.length === 68) {
const isValidTokenChar = (c: string) => this.isIdentifierPart(c);
return [...str.slice(4)].every(isValidTokenChar);
return str.slice(4).every(isValidTokenChar);
}
return false;