regex simplification
This commit is contained in:
1 parent
42ff4aa0d8
commit
30ff19b271
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user