From 22fa7887383187260db8a8506c3b7f4c8b21e5b2 Mon Sep 17 00:00:00 2001 From: dmo Date: Mon, 12 Feb 2024 09:40:31 +0100 Subject: [PATCH] Fix SyntaxWarning in #213 --- extruct/rdfa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extruct/rdfa.py b/extruct/rdfa.py index 273b0b57..58a0dd97 100644 --- a/extruct/rdfa.py +++ b/extruct/rdfa.py @@ -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 + ": [^\\s]+", head_element.get("prefix")) # if namespace taken from prefix attribute in head tag if match: