Skip to content

Commit

Permalink
Fix regex patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Apr 23, 2024
1 parent 7f82f4a commit b677926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/solc_parsing/expressions/expression_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def parse_expression(expression: Dict, caller_context: CallerContextExpression)
referenced_declaration = expression["attributes"]["referencedDeclaration"]

if t:
found = re.findall(r"[struct|enum|function|modifier] \(([\[\] ()a-zA-Z0-9\.,_]*)\)", t)
found = re.findall(r"(struct|enum|function|modifier) \(([\[\] ()a-zA-Z0-9\.,_]*)\)", t)
assert len(found) <= 1
if found:
value = value + "(" + found[0] + ")"
Expand Down

0 comments on commit b677926

Please sign in to comment.