Skip to content

Commit

Permalink
Fix SyntaxWarning in #213 (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
marillat authored Apr 12, 2024
1 parent 9e0179b commit 633bf53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extruct/rdfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _replaceNS(self, prop, html_element, head_element):

match = None
if head_element.get("prefix"):
match = re.search(prefix + ": [^\s]+", head_element.get("prefix"))
match = re.search(prefix + r": [^\s]+", head_element.get("prefix"))

# if namespace taken from prefix attribute in head tag
if match:
Expand Down

0 comments on commit 633bf53

Please sign in to comment.