Fix for deprecated regex escape warnings.

This commit is contained in:
Jim Miller 2020-09-23 12:36:34 -05:00
parent afdf3e5205
commit ad529eb9ef
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ class NovelUpdatesCcSiteAdapter(BaseSiteAdapter):
if self.getConfig("dedup_order_chapter_list",False):
# Sort and deduplicate chapters (some stories in incorrect order and/or duplicates)
chapters_data = []
numbers_regex = re.compile('[^0-9\.]') # Everything except decimal and numbers
numbers_regex = re.compile(r'[^0-9\.]') # Everything except decimal and numbers
for ch in chapters:
chapter_title = ch.p.get_text()
chapter_url = ch['href']

View file

@ -103,7 +103,7 @@ class WuxiaWorldCoSiteAdapter(BaseSiteAdapter):
if self.getConfig("dedup_order_chapter_list",False):
# Sort and deduplicate chapters (some stories in incorrect order and/or duplicates)
chapters_data = []
numbers_regex = re.compile('[^0-9\.]') # Everything except decimal and numbers
numbers_regex = re.compile(r'[^0-9\.]') # Everything except decimal and numbers
for ch in chapters:
chapter_title = ch.p.get_text()
chapter_url = ch['href']