Skip to content

Commit

Permalink
[#1984] exclude trailing ,.; in external link
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Oct 17, 2014
1 parent 16e7e6c commit 45b4957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -1556,7 +1556,7 @@ def get_request_param(parameter_name, default=None):

# find external links eg http://foo.com, https://bar.org/foobar.html
RE_MD_EXTERNAL_LINK = re.compile(
r'(\bhttps?:\/\/[\w\-\.,@?^=%&;:\/~\\+#]*)',
r'(\bhttps?:\/\/[\w\-\.,@?^=%&;:\/~\\+#]*[\w\-@?^=%&:\/~\\+#])',
flags=re.UNICODE
)

Expand Down

0 comments on commit 45b4957

Please sign in to comment.