improve !ud regex
This commit is contained in:
parent
1aab5c4c64
commit
702f5c5972
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import json, re
|
|||
from src import ModuleManager, utils
|
||||
|
||||
URL_URBANDICTIONARY = "http://api.urbandictionary.com/v0/define"
|
||||
REGEX_DEFNUMBER = re.compile("-n(\d+) \S+")
|
||||
REGEX_DEFNUMBER = re.compile("-n ?(\d+) ")
|
||||
|
||||
class Module(ModuleManager.BaseModule):
|
||||
_name = "UrbanDictionary"
|
||||
|
|
Loading…
Reference in a new issue