aboutsummaryrefslogtreecommitdiffstats
path: root/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'parser.py')
-rw-r--r--parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.py b/parser.py
index d8dedea..6b5ac18 100644
--- a/parser.py
+++ b/parser.py
@@ -77,7 +77,7 @@ def parse_asteriscs(test_str):
return test_str
def parse_links(test_str):
- regex = r"(?<!\\)\[.*?\]\(http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+\)"
+ regex = r"(?<!\\)\[.*?\]\(.*?\)"
matches = re.finditer(regex, test_str, re.MULTILINE)
offset = 0