From afbdf9151c3f842cbe76f8c6459e387e3e9d734f Mon Sep 17 00:00:00 2001 From: networkException Date: Tue, 4 Jan 2022 00:41:03 +0100 Subject: [PATCH] Tokenizer: Fix wrong alpha* helpers --- html/tokenizer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {