Update eslint to 8.27.0

This commit is contained in:
Fedor Indutny
2022-11-17 16:45:19 -08:00
committed by GitHub
parent c8fb43a846
commit 98ef4c627a
499 changed files with 8995 additions and 8494 deletions

View File

@@ -153,7 +153,7 @@ const VALID_URI_CHARACTERS = new Set([
'_',
'~',
]);
const ASCII_PATTERN = new RegExp('[\\u0020-\\u007F]', 'g');
const ASCII_PATTERN = /[\u0020-\u007F]/g;
const MAX_HREF_LENGTH = 2 ** 12;
export function isLinkSneaky(href: string): boolean {