diff --git a/files/helpers/regex.py b/files/helpers/regex.py index c27329d6ab..60ed7a24d6 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -91,8 +91,8 @@ reddit_domain_regex = re.compile("(^|\s|\()https?:\/\/(reddit\.com|new\.reddit.c color_regex = re.compile("[a-z0-9]{6}", flags=re.A) -# lazy match on the {}?, only match if there is trailing text -showmore_regex = re.compile("^(.{3000,40000}?

)(

.*)", flags=re.A) +# lazy match on the {}?, only match if there is trailing stuff +showmore_regex = re.compile(r"^(.{3000,}?

)(\s*.+)", flags=re.A|re.DOTALL) search_token_regex = re.compile('"([^"]*)"|(\S+)', flags=re.A)