Skip to content

Commit

Permalink
fix deprecation waring for regex in parse_svg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerum committed May 12, 2023
1 parent 9717c26 commit bff4518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylustrator/parse_svg.py
Expand Up @@ -616,8 +616,8 @@ def parseStyleSheet(text: str) -> list:
text = re.sub("//.*?\n", "", text)
# remove multiline comments
text = text.replace("\n", " ")
text = re.sub("/\*.*?\*/", "", text)
text = re.sub("/\*.*?\*/", "", text)
text = re.sub(r"/\*.*?\*/", "", text)
text = re.sub(r"/\*.*?\*/", "", text)

style_definitions = []
styles = re.findall("[^}]*{[^}]*}", text)
Expand Down

0 comments on commit bff4518

Please sign in to comment.