Fix Python warning in linter

Noticed while looking at the linter output.
This commit is contained in:
Philip Chimento 2025-10-31 11:51:41 -07:00 committed by Ms2ger
parent 421eebef85
commit 7b3764f570

View File

@ -13,7 +13,8 @@ class CheckEsid(Check):
# https://url.spec.whatwg.org/#fragment-state # https://url.spec.whatwg.org/#fragment-state
# However, that must also include "%" # However, that must also include "%"
self.esidRegex = re.compile( 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): def run(self, name, meta, source):