diff options
author | ふぁぼ原 <ko_kurihara@yahoo.co.jp> | 2017-09-15 01:03:20 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-14 18:03:20 +0200 |
commit | 3816943e6b5e86b22c35f3c068521f7a9007deec (patch) | |
tree | 3a245238e9410a4dce71bba1accbb2bc0e456508 /app/lib | |
parent | b39d512ade9f556ae29d60239102faf67ff6a89f (diff) |
Enable to recognize most kinds of characters as URL paths (#4941)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/formatter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index cacc0364f..d9f843f44 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -131,7 +131,7 @@ class Formatter end def link_html(url) - url = Addressable::URI.parse(url).display_uri.to_s + url = Addressable::URI.parse(url).to_s prefix = url.match(/\Ahttps?:\/\/(www\.)?/).to_s text = url[prefix.length, 30] suffix = url[prefix.length + 30..-1] |