mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-03 22:53:24 +01:00
Fix for deprecated regex escape warnings.
This commit is contained in:
parent
afdf3e5205
commit
ad529eb9ef
2 changed files with 2 additions and 2 deletions
|
|
@ -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']
|
||||
|
|
|
|||
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Reference in a new issue