Fix invalid escape sequence warning in saxo regex

f"\d+$" produced a SyntaxWarning on Python 3.12 (and will become a
SyntaxError in a future release). The string has no interpolation, so
the raw form r"\d+$" is the right fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
s0len 2026-05-21 07:41:19 +02:00
parent c1952d4d10
commit 7de0c4c0ba

View File

@ -122,7 +122,7 @@ class Saxo(Source):
:param url: Url of book
:returns: Isbn of book
"""
isbn_match = re.search(f"\d+$", url)
isbn_match = re.search(r"\d+$", url)
if isbn_match and isbn_match.group():
return isbn_match.group()
raise NotImplemented