From 8076d38a1487dd5b64153cd20eb696358b2f7acf Mon Sep 17 00:00:00 2001
From: James Lopez <james@jameslopez.es>
Date: Fri, 24 Jun 2016 11:35:32 +0200
Subject: [PATCH] added more info on how addressable URI differs from what we
 use in UrlValidator

---
 app/validators/addressable_url_validator.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/validators/addressable_url_validator.rb b/app/validators/addressable_url_validator.rb
index cbb80b5c68e..634a15aea01 100644
--- a/app/validators/addressable_url_validator.rb
+++ b/app/validators/addressable_url_validator.rb
@@ -1,6 +1,8 @@
 # AddressableUrlValidator
 #
-# Custom validator for URLs. This is a stricter version of UrlValidator.
+# Custom validator for URLs. This is a stricter version of UrlValidator - it also checks
+# for using the right protocol, but it actually parses the URL checking for any syntax errors.
+# The regex is also different from `URI` as we use `Addressable::URI` here.
 #
 # By default, only URLs for http, https, ssh, and git protocols will be considered valid.
 # Provide a `:protocols` option to configure accepted protocols.
-- 
GitLab