aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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"