diff options
author | beatrix <beatrix.bitrot@gmail.com> | 2017-10-18 17:57:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-18 17:57:42 -0400 |
commit | c75665127878f41af2547b12b8723963c04d305b (patch) | |
tree | d8275432c259d0fcd1385c163d7f2472b4a8684c /app/services | |
parent | 4421f6598f5883908fb25743977306f19a0b0f0f (diff) | |
parent | eb907a5babed83a73788b16772fb2cba6db8c2b4 (diff) |
Merge pull request #188 from glitch-soc/merge-upstream-2-0-0
Merge with upstream v2.0.0
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/fetch_link_card_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb index 7029c4d75..14c21b6cc 100644 --- a/app/services/fetch_link_card_service.rb +++ b/app/services/fetch_link_card_service.rb @@ -3,7 +3,7 @@ class FetchLinkCardService < BaseService URL_PATTERN = %r{ ( # $1 URL - (https?:\/\/)? # $2 Protocol (optional) + (https?:\/\/) # $2 Protocol (required) (#{Twitter::Regex[:valid_domain]}) # $3 Domain(s) (?::(#{Twitter::Regex[:valid_port_number]}))? # $4 Port number (optional) (/#{Twitter::Regex[:valid_url_path]}*)? # $5 URL Path and anchor |