From a3f1b85e1644ba8a671b659d55e8f435ae23d383 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 7 Dec 2022 09:58:43 +0200 Subject: [PATCH] fix this https://stupidpol.site/h/programming/post/129189/advent-of-code-day-6/3195992?context=8#context --- 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 f5c64c0a5..1ee7ec87b 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -44,7 +44,7 @@ spoiler_regex = re.compile('''\|\|(.+)\|\|''', flags=re.A) reddit_regex = re.compile('(^|\s|

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

)\/?(h\/(\w|-){3,25})(?![^<]*<\/(code|pre|a)>)', flags=re.A) -strikethrough_regex = re.compile('(^|\s|>)~{1,2}([^~]+)~{1,2}', flags=re.A) +strikethrough_regex = re.compile('(^|\s|>)~{1,2}([^~]+)~{1,2}(?![^<]*<\/(code|pre|a)>)', flags=re.A) mute_regex = re.compile("\/mute @([a-z0-9_\-]{3,30}) ([0-9]+)", flags=re.A|re.I)