Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.7k
Closed
Description
Two issues found with the Validate Url algorithm:
- A string is considered to be valid URL if it starts withwww. even though it does not have https
validateUrl('www.google.com')
// returns truevalidateUrl('google.com')
// returns false
- A valid URL returns false if starts with www like:
validateUrl('https://wwwdomain.com')
// returns false