From 8212fc51ebb832b5d45fc3c2849f91dc21804f49 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 31 Oct 2018 16:29:24 +0000 Subject: [PATCH] imgur url hashids aren't always 7 characters --- modules/imgur.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgur.py b/modules/imgur.py index d37f0562..cb0c9e22 100644 --- a/modules/imgur.py +++ b/modules/imgur.py @@ -3,7 +3,7 @@ import re from src import ModuleManager, utils -REGEX_IMAGE = re.compile("https?://(?:i\.)?imgur.com/(\w{7})") +REGEX_IMAGE = re.compile("https?://(?:i\.)?imgur.com/(\w+)") URL_IMAGE = "https://api.imgur.com/3/image/%s" class Module(ModuleManager.BaseModule):