lp: fix isValidLocal() not respecting capitals

This commit is contained in:
CPunch 2022-08-17 22:14:13 -05:00
parent bc4e762e26
commit b28edcba1d
1 changed files with 2 additions and 2 deletions

View File

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