mirror of
https://github.com/jo1gi/grawlix.git
synced 2026-07-10 01:34:49 -06:00
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:
parent
c1952d4d10
commit
7de0c4c0ba
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user