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:
James Vega 2003-11-12 14:39:44 +00:00
parent e4f912fc51
commit 988ac324b4
1 changed files with 1 additions and 1 deletions

View File

@ -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)