Skip to content
Snippets Groups Projects
Commit 8076d38a authored by James Lopez's avatar James Lopez
Browse files

added more info on how addressable URI differs from what we use in UrlValidator

parent 58c49966
No related branches found
No related tags found
1 merge request!4753Fixing URL validation for import_url on projects
Pipeline #
# AddressableUrlValidator # 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. # By default, only URLs for http, https, ssh, and git protocols will be considered valid.
# Provide a `:protocols` option to configure accepted protocols. # Provide a `:protocols` option to configure accepted protocols.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment