Skip to content

Commit

Permalink
Merge pull request #9 from pmslavin/sk_fixes
Browse files Browse the repository at this point in the history
Add '/' to the node name regexp
  • Loading branch information
pmslavin authored May 22, 2024
2 parents 0d016dd + d56677c commit 4ede6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywrparser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def parse_reference_key(key: str) -> Tuple[str, str]:
sepidx = name_end + len(end_mark) - 1
name, attr = key[:sepidx], key[sepidx+1:]

name_pattern = r"^__[a-zA-Z0-9_ \:\.\-\(\)]+__$"
name_pattern = r"^__[a-zA-Z0-9_ \/\:\.\-\(\)]+__$"
if not re.search(name_pattern, name):
raise ValueError(f"Invalid reference: {name}")

Expand Down

0 comments on commit 4ede6bf

Please sign in to comment.