From ba5f8b26340c07ea601cd8c28fe71d026b635c15 Mon Sep 17 00:00:00 2001 From: Nikolay Date: Fri, 22 Aug 2025 00:45:02 +0300 Subject: [PATCH] Remove annoying warning --- domonic/dom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domonic/dom.py b/domonic/dom.py index 92cd8c3..2da0b58 100644 --- a/domonic/dom.py +++ b/domonic/dom.py @@ -2208,7 +2208,7 @@ def getElements(context, tag): context = [] for fnd in found: if fnd.getAttribute("class") and re.search( - r"(^|\s)" + class_name + "(\s|$)", fnd.getAttribute("class") + r"(^|\s)" + class_name + r"(\s|$)", fnd.getAttribute("class") ): context.append(fnd)