aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-07-02 14:53:08 +0100
committerGravatar jesopo2019-07-02 14:53:08 +0100
commit702f5c59729a48a2dec6a4c75337604005740afd (patch)
tree677ac08ae52d349781d9ba3991835cec4d276f92 /modules
parentActually use sanitised url when getting <title> (diff)
signature
improve !ud regex
Diffstat (limited to 'modules')
-rw-r--r--modules/urbandictionary.py2
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"