IsUrl() fails validation for URLs that use localhost. This is due to the validation performed when the IsUrl option require_tld is set to true.
Example URL that fails validation:
http://localhost:3000/
Please disregard. I just found this in the changelog.
"isURL() now requires the require_tld: false option to validate localhost"
https://github.com/chriso/validator.js/issues/675
Most helpful comment
Please disregard. I just found this in the changelog.
"isURL() now requires the require_tld: false option to validate localhost"
https://github.com/chriso/validator.js/issues/675