diff --git a/html/tokenizer.ts b/html/tokenizer.ts index 6709751..a8f36a7 100644 --- a/html/tokenizer.ts +++ b/html/tokenizer.ts @@ -540,15 +540,15 @@ export class Tokenizer { } private asciiUpperAlpha(input: string): boolean { - return /[^\u0041-\u005A]/.test(input); + return /[\u0041-\u005A]/.test(input); } private asciiLowerAlpha(input: string): boolean { - return /[^\u0061-\u007A]/.test(input); + return /[\u0061-\u007A]/.test(input); } private asciiDigit(input: string): boolean { - return /[^\u0030-\u0030]/.test(input); + return /[\u0030-\u0030]/.test(input); } private reconsumeIn(state: State): void {