Fixed regexp to match changes made to UrbanDict site

This commit is contained in:
Kevin Murphy 2004-09-20 16:41:13 +00:00
parent 1e397aea91
commit a03f1d9f69

View File

@ -67,8 +67,9 @@ class UrbanDict(callbacks.Privmsg):
irc.error(str(e))
_wordRE = re.compile(r'<title>UrbanDictionary.com/(?P<word>.*?)</title>')
_defUsageRE = re.compile(r'<blockquote><p>(?P<definition>.*?)</p>'
r'<p><i>(?P<usage>.*?)</i></p>',
_defUsageRE = re.compile(r'<div style="padding-left: 30px; padding-right: '
r'30px"><p>(?P<definition>.*?)</p><p><i>'
r'(?P<usage>.*?)</i></p>.*?</div>',
re.MULTILINE | re.DOTALL)
def urbandict(self, irc, msg, args):
"""[<phrase>]