diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-03 11:17:10 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-03 11:17:10 +0200 |
commit | c38d2737d3d9fd6d41d9ec8eaf901fc04092dadd (patch) | |
tree | aedc5576c4215f25ee4b59ef2c4831e515a23f26 | |
parent | 0b309b0e7dffbb4d48c157a60029eb3275a99f7d (diff) |
url_titles: Ignore # in URLs.
-rw-r--r-- | modules/url_titles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/url_titles.py b/modules/url_titles.py index c4f89f4..fe6282b 100644 --- a/modules/url_titles.py +++ b/modules/url_titles.py @@ -8,7 +8,7 @@ import re, urllib2, htmlentitydefs, gzip, cStringIO, time from PIL import ImageFile class Module: - re_http = re.compile(r'(https?://[^\ ]+)') + re_http = re.compile(r'(https?://[^\ #]+)') re_title = re.compile(r'<title[^>]*?>(.*?)</title>', re.S | re.I) def __init__(self, bot): |