REGEX_IMAGE should be a compiled regex!
This commit is contained in:
parent
f073613848
commit
0066cb313e
1 changed files with 2 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
||||||
#--require-config imgur-api-key
|
#--require-config imgur-api-key
|
||||||
|
|
||||||
|
import re
|
||||||
from src import ModuleManager, utils
|
from src import ModuleManager, utils
|
||||||
|
|
||||||
REGEX_IMAGE = "https?://(?:i\.)?imgur.com/(\w{7})"
|
REGEX_IMAGE = re.compile("https?://(?:i\.)?imgur.com/(\w{7})")
|
||||||
URL_IMAGE = "https://api.imgur.com/3/image/%s"
|
URL_IMAGE = "https://api.imgur.com/3/image/%s"
|
||||||
|
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
|
|
Loading…
Reference in a new issue