mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
Fix several lints (#19121)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user