Skip to content

Version 13.6.0 and 13.7.0 are not compatible #1866

Closed
@unicornonea

Description

@unicornonea

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions