From 5ad5e11587803f9b9f47247bca2019d6759f1f85 Mon Sep 17 00:00:00 2001 From: novokrest Date: Sat, 12 May 2018 07:51:01 +0300 Subject: [PATCH] link_shortener: Allow #% characters for shortening URL. --- zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py b/zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py index 243e552..9d5e983 100644 --- a/zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py +++ b/zulip_bots/zulip_bots/bots/link_shortener/link_shortener.py @@ -35,8 +35,8 @@ class LinkShortenerHandler(object): '(' '(?:http|https):\/\/' # This allows for the HTTP or HTTPS # protocol. - '[^"<>#%\{\}|\\^~[\]` ]+' # This allows for any character except - # for certain non-URL-safe ones. + '[^"<>\{\}|\\^~[\]` ]+' # This allows for any character except + # for certain non-URL-safe ones. ')' )