mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Fixed regexp to match changes made to UrbanDict site
This commit is contained in:
parent
1e397aea91
commit
a03f1d9f69
@ -67,8 +67,9 @@ class UrbanDict(callbacks.Privmsg):
|
|||||||
irc.error(str(e))
|
irc.error(str(e))
|
||||||
|
|
||||||
_wordRE = re.compile(r'<title>UrbanDictionary.com/(?P<word>.*?)</title>')
|
_wordRE = re.compile(r'<title>UrbanDictionary.com/(?P<word>.*?)</title>')
|
||||||
_defUsageRE = re.compile(r'<blockquote><p>(?P<definition>.*?)</p>'
|
_defUsageRE = re.compile(r'<div style="padding-left: 30px; padding-right: '
|
||||||
r'<p><i>(?P<usage>.*?)</i></p>',
|
r'30px"><p>(?P<definition>.*?)</p><p><i>'
|
||||||
|
r'(?P<usage>.*?)</i></p>.*?</div>',
|
||||||
re.MULTILINE | re.DOTALL)
|
re.MULTILINE | re.DOTALL)
|
||||||
def urbandict(self, irc, msg, args):
|
def urbandict(self, irc, msg, args):
|
||||||
"""[<phrase>]
|
"""[<phrase>]
|
||||||
|
Loading…
Reference in New Issue
Block a user