aboutsummaryrefslogtreecommitdiff
path: root/modules/imgur.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-31 16:29:24 +0000
committerGravatar jesopo2018-10-31 16:29:24 +0000
commit8212fc51ebb832b5d45fc3c2849f91dc21804f49 (patch)
treefa5ca6cd921e38b86fc579e2dd42868a7d17ba82 /modules/imgur.py
parentFix typo in modules/imgur.py that caused `headers` passed to utils.http.get_url (diff)
signature
imgur url hashids aren't always 7 characters
Diffstat (limited to 'modules/imgur.py')
-rw-r--r--modules/imgur.py2
1 files changed, 1 insertions, 1 deletions
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):