Improved regex matching

This commit is contained in:
ulteq 2015-04-24 13:11:43 +02:00
parent 6361bda3e9
commit 5e766835a6

View File

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