aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2014-06-08 20:45:56 +0200
committerWojciech Polak <polak@gnu.org>2014-06-08 20:45:56 +0200
commit29a60881c0e09002aae5810b5d2aa613dbdd99ca (patch)
tree4b6e32cf63dfba83c61283a28503b67ec8249db3
parentbc4a3714123bae0b8f95f8fb08d55a79c334c4cc (diff)
downloadglifestream-29a60881c0e09002aae5810b5d2aa613dbdd99ca.tar.gz
glifestream-29a60881c0e09002aae5810b5d2aa613dbdd99ca.tar.bz2
Expand secured URL shorteners.
-rw-r--r--glifestream/filters/expand.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glifestream/filters/expand.py b/glifestream/filters/expand.py
index 54369d9..dee0113 100644
--- a/glifestream/filters/expand.py
+++ b/glifestream/filters/expand.py
@@ -36,7 +36,7 @@ def __su_subs(m):
def shorturls(text):
"""Expand short URLs."""
- return re.sub(r'http://(tinyurl\.com|bit\.ly|goo\.gl|t\.co|is\.gd'
+ return re.sub(r'https?://(tinyurl\.com|bit\.ly|goo\.gl|t\.co|is\.gd'
r'|ur1\.ca|2tu\.us|ff\.im|post\.ly|awe\.sm|lnk\.ms|pic\.gd'
r'|tl\.gd|youtu\.be|tiny\.cc|ow\.ly|j\.mp|url4\.eu'
r')(/[\-\w]+)', __su_subs, smart_unicode(text))

Return to:

Send suggestions and report system problems to the System administrator.