regex simplification

This commit is contained in:
mdipierro
2012-12-06 16:56:29 -06:00
parent 5e7de996e0
commit c574a97cad
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ regex_tables = re.compile(
# pattern to find exposed functions in controller
regex_expose = re.compile(
'^def\s+(?P<name>(?:[a-zA-Z0-9]\w*)|(?:_[a-zA-Z0-9]\w*))\(\)\s*:',
'^def\s+(?P<name>_?[a-zA-Z0-9]\w*)\( *\)\s*:',
flags=re.M)
regex_include = re.compile(