From 243cf4eaf87847264c02877fa3d5264ba50d98d1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 5 Oct 2022 00:19:50 +0200 Subject: [PATCH] Revert "improve fishylinks_regex" This reverts commit 88c1f1b233db1a4fc344482d54740ddd04b1ecf2. --- files/helpers/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 0e32bac553..870908de36 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -33,7 +33,7 @@ based_regex = re.compile("based and (.{1,20}?)(-| )pilled", flags=re.I|re.A) controversial_regex = re.compile('["> ](https:\/\/old\.reddit\.com/r/[a-zA-Z0-9_]{3,20}\/comments\/[\w\-.#&/=\?@%+]{5,250})["< ]', flags=re.A) -fishylinks_regex = re.compile("https?[:։]\/\/\S+", flags=re.A) +fishylinks_regex = re.compile("https?://\S+", flags=re.A) spoiler_regex = re.compile('''\|\|(.+)\|\|''', flags=re.A) reddit_regex = re.compile('(^|\s|

)\/?((r|u)\/(\w|-){3,25})(?![^<]*<\/(code|pre|a)>)', flags=re.A)