]> cat aescling's git repositories - mastodon.git/commit
Fix URLs incorrectly having trailing hyphen removed (#6465)
authorDaniel King <northerner@users.noreply.github.com>
Sun, 11 Feb 2018 22:49:18 +0000 (22:49 +0000)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 11 Feb 2018 22:49:18 +0000 (23:49 +0100)
commit6ef3874b2eac79cc2b602de609793254b8d6c611
tree41032cc4b49c7fb3c574e700dcedf7e32d3f1814
parente20700fe8fa22562d3df10ad0361e65676a01231
Fix URLs incorrectly having trailing hyphen removed (#6465)

In cases where a URL has a trailing hyphen the FetchLinkCardService incorrectly removes the hyphen when it is parsed

The hyphen is not a reserved character in the URI spec https://tools.ietf.org/html/rfc3986#section-2.2
config/initializers/twitter_regex.rb
spec/services/fetch_link_card_service_spec.rb