ignore preceeding numbers

This commit is contained in:
jaynus 2015-04-16 09:54:52 -07:00
parent aeffc55859
commit 9db256ad8d

View File

@ -53,7 +53,7 @@ def check_privates(filepath):
# Regex search privates
srch = re.compile('(?<![_a-zA-Z])(_[a-zA-Z]*?)[ ,\}\]\)";]')
srch = re.compile('(?<![_a-zA-Z0-9])(_[a-zA-Z]*?)[ ,\}\]\)";]')
priv_use = srch.findall(content)
priv_use = sorted(set(priv_use))