From 8670a71c30e564598a6ac6aced3630a206711c57 Mon Sep 17 00:00:00 2001 From: Butter Cat Date: Mon, 13 Nov 2023 20:28:21 -0500 Subject: [PATCH] Fix missing parentheses in Imgur regex --- src/formatters.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatters.nim b/src/formatters.nim index 736c6b8..0647505 100644 --- a/src/formatters.nim +++ b/src/formatters.nim @@ -21,7 +21,7 @@ let # Images aren't supported due to errors from Teddit when the image # wasn't first displayed via a post on the Teddit instance. - imgurRegex = re"(i|i.stack)\.)?imgur.com" + imgurRegex = re"((i|i.stack)\.)?imgur.com" wwwRegex = re"https?://(www[0-9]?\.)?" m3u8Regex = re"""url="(.+.m3u8)""""