link_shortener: Allow #% characters for shortening URL.

This commit is contained in:
novokrest 2018-05-12 07:51:01 +03:00 committed by Tim Abbott
parent bccbda49f2
commit 5ad5e11587

View file

@ -35,7 +35,7 @@ class LinkShortenerHandler(object):
'('
'(?:http|https):\/\/' # This allows for the HTTP or HTTPS
# protocol.
'[^"<>#%\{\}|\\^~[\]` ]+' # This allows for any character except
'[^"<>\{\}|\\^~[\]` ]+' # This allows for any character except
# for certain non-URL-safe ones.
')'
)