Skip to content

Commit

Permalink
Allow whitespaces in START STENCIL directive for name argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Stellio committed Mar 15, 2024
1 parent 0b113cb commit 3615809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/src/icon4pytools/liskov/parsing/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def validate(self, directives: Sequence[ts.ParsedDirective]) -> None:


def _extract_arg_from_directive(directive: str, arg: str) -> str:
match = re.search(f"{arg}=([^;)]+)", directive)
match = re.search(f"{arg}\s*=\s*([^\s;)]+)", directive)
if match:
return match.group(1)
else:
Expand Down

0 comments on commit 3615809

Please sign in to comment.