Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 518 Bytes

url.md

File metadata and controls

22 lines (17 loc) · 518 Bytes

Url

Validates if the given input is a url.

Valid values:

validator.url().validate('http://example.com');
validator.url().validate('https://www.youtube.com/watch?v=6FOUqQt3Kg0');
validator.url().validate('ldap://[::1]');
validator.url().validate('mailto:[email protected]');
validator.url().validate('news:new.example.com');

Invalid values:

validator.url().validate('');
validator.url().validate('foo');
validator.url().validate('http:/example.com/');
validator.url().validate('foo,bar');