about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-10-18 11:52:04 -0500
committerDavid Yip <yipdw@member.fsf.org>2017-10-18 11:52:04 -0500
commit42e8c8eb0e9964d157ac160b3f816e58a771f045 (patch)
treec3f044eacc21ff65d9cb1bf20d111aaff6c86074 /app/services
parent4421f6598f5883908fb25743977306f19a0b0f0f (diff)
parent09d81defcda96eae7ffba36ccf1fb091ce08f17b (diff)
Merge tag 'v2.0.0' into gs-master
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fetch_link_card_service.rb2
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