From 7b3764f5702970a054033d0c47b5be38a6cf2874 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 31 Oct 2025 11:51:41 -0700 Subject: [PATCH] Fix Python warning in linter Noticed while looking at the linter output. --- tools/lint/lib/checks/esid.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lint/lib/checks/esid.py b/tools/lint/lib/checks/esid.py index fbe1f4fc41..9c8deb9e31 100644 --- a/tools/lint/lib/checks/esid.py +++ b/tools/lint/lib/checks/esid.py @@ -13,7 +13,8 @@ class CheckEsid(Check): # https://url.spec.whatwg.org/#fragment-state # However, that must also include "%" self.esidRegex = re.compile( - u"^[a-z0-9!$%&'()*+,\-./:;=?@_~\u00a0-\U0010fffd]+$", re.IGNORECASE + u"^[a-z0-9!$%&'()*+,\\-./:;=?@_~\u00a0-\U0010fffd]+$", + re.IGNORECASE ) def run(self, name, meta, source):