Tokenizer: Fix wrong alpha* helpers

This commit is contained in:
networkException 2022-01-04 00:41:03 +01:00
parent 9cc468a997
commit afbdf9151c

View file

@ -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 {