mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Not all tinyurls end in 4 random characters, so I shouldn't be looking for 4
characters. Switched to \w+
This commit is contained in:
parent
e4f912fc51
commit
988ac324b4
@ -156,7 +156,7 @@ class URL(callbacks.Privmsg, plugins.Configurable, plugins.ChannelDBHandler):
|
|||||||
self.nextMsgs.setdefault(key, []).append((url, added))
|
self.nextMsgs.setdefault(key, []).append((url, added))
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
_tinyRe = re.compile(r'(http://tinyurl.com/\w{4})</blockquote>')
|
_tinyRe = re.compile(r'(http://tinyurl.com/\w+)</blockquote>')
|
||||||
def _getTinyUrl(self, url, cmd=False):
|
def _getTinyUrl(self, url, cmd=False):
|
||||||
try:
|
try:
|
||||||
#debug.printf('Trying to get tinyurl for %r' % url)
|
#debug.printf('Trying to get tinyurl for %r' % url)
|
||||||
|
Loading…
Reference in New Issue
Block a user