From dc8ef20b99d02ce720284e731e842e1cd7fd6da1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Fri, 12 Apr 2024 13:31:48 +0200 Subject: [PATCH] Update extruct/rdfa.py Co-authored-by: Andrey Rakhmatullin --- extruct/rdfa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extruct/rdfa.py b/extruct/rdfa.py index 58a0dd97..c313e2b6 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 + r": [^\s]+", head_element.get("prefix")) # if namespace taken from prefix attribute in head tag if match: