Skip to content

Commit

Permalink
Improved regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwinator committed Mar 8, 2022
1 parent 298bd5f commit 8b99883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphviz_py/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
from typing import List

py_regex = r'{{( |[= ]|\n)[^{}]+( |\n)}}'
py_regex = r'{{( |[= ]|\n)((?!{{ |{{= | }})[\s\S])+( |\n)}}'


def convert(python_graphviz: str, arguments: List[str]) -> str:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "graphviz-py"
version = "1.0.3"
version = "1.0.5"
description = "Allows Python code execution inside of graphviz diagrams."
authors = ["Alwin Schuster <[email protected]>"]
license = 'MPL-2.0'
Expand Down

0 comments on commit 8b99883

Please sign in to comment.