Closed
Description
Describe the bug
validator.isURL is not compatible when upgrading from 13.6.0 to 13.7.0
Examples
const validator = require('validator');
const url = 'http:/some.example.com';
const a = validator.isURL(url.toString(), {
protocols: ['http', 'https'],
require_tld: false
});
console.log(a);
// v13.6.0 a is false
// v13.7.0 a is true