Skip to content

isURL method always returns false #1432

Open
@zilahir

Description

@zilahir

Describe the bug
A clear and concise description of what the bug is.

The isURL method always returns false, regardless what the input string is. Also ignores the config object.

Examples

function checkIfUrlIsValid(url) {
   isURL(url)
}
checkIfUrlIsValid('www.index.hu') --> false
checkIfUrlIsValid('index.hu') --> false
checkIfUrlIsValid('https://www.index.hu') --> false
checkIfUrlIsValid('google.com') --> false

Additional context
Validator.js version: 13.1.1
Node.js version: node/12.8.1
OS platform: macOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions