From 8a741f4d5f67dca971503b5649d5590a20289d5f Mon Sep 17 00:00:00 2001 From: Butter Cat Date: Mon, 13 Nov 2023 20:32:22 -0500 Subject: [PATCH] Account for imgur.io --- src/formatters.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatters.nim b/src/formatters.nim index 0647505..75ff17e 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|io)" wwwRegex = re"https?://(www[0-9]?\.)?" m3u8Regex = re"""url="(.+.m3u8)""""