From 988ac324b4671a57a79e975aca2c8df05af5b66b Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 12 Nov 2003 14:39:44 +0000 Subject: [PATCH] Not all tinyurls end in 4 random characters, so I shouldn't be looking for 4 characters. Switched to \w+ --- plugins/URL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/URL.py b/plugins/URL.py index 94e8a4bcd..355f749ac 100644 --- a/plugins/URL.py +++ b/plugins/URL.py @@ -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})') + _tinyRe = re.compile(r'(http://tinyurl.com/\w+)') def _getTinyUrl(self, url, cmd=False): try: #debug.printf('Trying to get tinyurl for %r' % url)