@@ -16,15 +16,21 @@ require_host - if set to false isURL will not check if host is present in the UR
1616require_port - if set to true isURL will check if port is present in the URL.
1717require_valid_protocol - isURL will check if the URL's protocol is present in the protocols option.
1818allow_underscores - if set to true, the validator will allow underscores in the URL.
19- host_whitelist - if set to an array of strings or regexp, and the domain matches none of the strings defined in it, the validation fails.
20- host_blacklist - if set to an array of strings or regexp, and the domain matches any of the strings defined in it, the validation fails.
21- allow_trailing_dot - if set to true, the validator will allow the domain to end with a `.` character.
19+ host_whitelist - if set to an array of strings or regexp, and the domain matches none of the strings
20+ defined in it, the validation fails.
21+ host_blacklist - if set to an array of strings or regexp, and the domain matches any of the strings
22+ defined in it, the validation fails.
23+ allow_trailing_dot - if set to true, the validator will allow the domain to end with
24+ a `.` character.
2225allow_protocol_relative_urls - if set to true protocol relative URLs will be allowed.
2326allow_fragments - if set to false isURL will return false if fragments are present.
2427allow_query_components - if set to false isURL will return false if query components are present.
25- disallow_auth - if set to true, the validator will fail if the URL contains an authentication component, e.g. `http://username:password@example.com`
26- validate_length - if set to false isURL will skip string length validation. `max_allowed_length` will be ignored if this is set as `false`.
27- max_allowed_length - if set, isURL will not allow URLs longer than the specified value (default is 2084 that IE maximum URL length).
28+ disallow_auth - if set to true, the validator will fail if the URL contains an authentication
29+ component, e.g. `http://username:password@example.com`
30+ validate_length - if set to false isURL will skip string length validation. `max_allowed_length`
31+ will be ignored if this is set as `false`.
32+ max_allowed_length - if set, isURL will not allow URLs longer than the specified value (default is
33+ 2084 that IE maximum URL length).
2834
2935*/
3036
0 commit comments