From b28edcba1dabdba299b078ac2c55053c5c9c6963 Mon Sep 17 00:00:00 2001 From: CPunch Date: Wed, 17 Aug 2022 22:14:13 -0500 Subject: [PATCH] lp: fix isValidLocal() not respecting capitals --- lparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lparser.py b/lparser.py index 793e407..53345c0 100644 --- a/lparser.py +++ b/lparser.py @@ -30,12 +30,12 @@ class _Line: def isValidLocal(ident: str) -> bool: # has to start with an alpha or _ - if ident[0] not in "abcdefghijklmnopqrstuvwxyz_": + if ident[0] not in "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_": return False # then it can be alphanum or _ for c in ident[1:]: - if c not in "abcdefghijklmnopqrstuvwxyz1234567890_": + if c not in "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_": return False return True