aboutsummaryrefslogtreecommitdiffstats
path: root/parser.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-03-06 19:36:10 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-03-06 19:36:10 +0000
commitdd073f7256bd53162e1ee93c6777ba6c7e97f3ca (patch)
tree00f45309b402d98696cd04d5958505b162b8941b /parser.py
parenteb7d513356362db925eefbf50f967b4d983d7bd9 (diff)
downloadeda.gay-dd073f7256bd53162e1ee93c6777ba6c7e97f3ca.tar.gz
eda.gay-dd073f7256bd53162e1ee93c6777ba6c7e97f3ca.zip
added getting random anime images
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