mirror of
https://github.com/CPunch/LuaDecompy.git
synced 2024-11-22 23:00:09 +00:00
lp: fix isValidLocal() not respecting capitals
This commit is contained in:
parent
bc4e762e26
commit
b28edcba1d
@ -30,12 +30,12 @@ class _Line:
|
|||||||
|
|
||||||
def isValidLocal(ident: str) -> bool:
|
def isValidLocal(ident: str) -> bool:
|
||||||
# has to start with an alpha or _
|
# has to start with an alpha or _
|
||||||
if ident[0] not in "abcdefghijklmnopqrstuvwxyz_":
|
if ident[0] not in "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_":
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# then it can be alphanum or _
|
# then it can be alphanum or _
|
||||||
for c in ident[1:]:
|
for c in ident[1:]:
|
||||||
if c not in "abcdefghijklmnopqrstuvwxyz1234567890_":
|
if c not in "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_":
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user