improve !ud regex

This commit is contained in:
jesopo 2019-07-02 14:53:08 +01:00
parent 1aab5c4c64
commit 702f5c5972

View file

@ -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"