diff --git a/mythril/support/signatures.py b/mythril/support/signatures.py index 11a1e3f6..0431dd21 100644 --- a/mythril/support/signatures.py +++ b/mythril/support/signatures.py @@ -10,7 +10,7 @@ def add_signatures_from_file(file, sigs={}): code = f.read() - funcs = re.findall(r'function[\s]+(.*?\))', code, re.DOTALL) + funcs = re.findall(r'function[\s]+(\w+\([^\)]*\))', code, re.DOTALL) for f in funcs: