mirror of https://github.com/Mikaela/Limnoria.git
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))
|
||||
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):
|
||||
try:
|
||||
#debug.printf('Trying to get tinyurl for %r' % url)
|
||||
|
|
Loading…
Reference in New Issue