imgur url hashids aren't always 7 characters
This commit is contained in:
parent
bf6a740f7b
commit
8212fc51eb
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue