Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix support for links with apostrophes

Jules-WinnfieldX78a170edb1b2
diff --git a/README.md b/README.md
index db4decb6f..7a4e615f9 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# `cyberdrop-dl`
**Bulk downloader for multiple file hosts**
-The latest version of the program is 3.5.5
+The latest version of the program is 3.5.6
<a href="https://www.buymeacoffee.com/juleswinnft" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
diff --git a/changelog.txt b/changelog.txt
index e55c96f3d..6c00591e2 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -45,4 +45,7 @@
- Fix skip sites
3.5.5
-- Fix bug with pre-allocation
\ No newline at end of file
+- Fix bug with pre-allocation
+
+3.5.6
+- Fix support for links with apostrophes
\ No newline at end of file
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 4c5818f30..37f46012c 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "3.5.5"
+__version__ = "3.5.6"
diff --git a/cyberdrop_dl/base_functions/base_functions.py b/cyberdrop_dl/base_functions/base_functions.py
index fd10b6bd9..80481f6ea 100644
--- a/cyberdrop_dl/base_functions/base_functions.py
+++ b/cyberdrop_dl/base_functions/base_functions.py
@@ -86,7 +86,7 @@ async def purge_dir(dirname, in_place=True):
async def regex_links(urls) -> list:
all_links = [x.group().replace(".md.", ".") for x in re.finditer(
- r"(?:http.*?)(?=('|$|\n|\r\n|\r|\s|\"|\[/URL]|]\[|\[/img]))", urls)]
+ r"(?:http.*?)(?=($|\n|\r\n|\r|\s|\"|\[/URL]|]\[|\[/img]))", urls)]
yarl_links = []
for link in all_links:
yarl_links.append(URL(link))