1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-21 09:14:54 +00:00

Marked 2 strings as raw strings to suppress warnings

This commit is contained in:
Ozzie Isaacs 2024-10-25 14:18:22 +02:00
parent 4fa7520598
commit d5059979d5
2 changed files with 2 additions and 2 deletions

View File

@ -2089,7 +2089,7 @@ def extract_user_data_from_field(user, field):
def extract_dynamic_field_from_filter(user, filtr):
match = re.search("([a-zA-Z0-9-]+)=%s", filtr, re.IGNORECASE | re.UNICODE)
match = re.search(r"([a-zA-Z0-9-]+)=%s", filtr, re.IGNORECASE | re.UNICODE)
if match:
return match.group(1)
else:

View File

@ -19,5 +19,5 @@ import re
def strip_whitespaces(text):
return re.sub("(^[\s\u200B-\u200D\ufeff]+)|([\s\u200B-\u200D\ufeff]+$)","", text)
return re.sub(r"(^[\s\u200B-\u200D\ufeff]+)|([\s\u200B-\u200D\ufeff]+$)","", text)