diff options
| author | 2019-07-02 14:53:08 +0100 | |
|---|---|---|
| committer | 2019-07-02 14:53:08 +0100 | |
| commit | 702f5c59729a48a2dec6a4c75337604005740afd (patch) | |
| tree | 677ac08ae52d349781d9ba3991835cec4d276f92 /modules | |
| parent | Actually use sanitised url when getting <title> (diff) | |
| signature | ||
improve !ud regex
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/urbandictionary.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/urbandictionary.py b/modules/urbandictionary.py index 1f147ed4..80ab63e6 100644 --- a/modules/urbandictionary.py +++ b/modules/urbandictionary.py @@ -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" |
