Skip to content

Unexpected validation response for <name>:<port> URLs #2620

@octavian-mto

Description

@octavian-mto

Describe the bug
isURL returns false for urls like some-hostname:9000 after 13.15.20 version bump, 13.15.15 works as expected returning true

Examples

validator.isURL("my-3272-service:9000", { require_tld: false, require_valid_protocol: false });  // returns false in 13.15.20 instead of true

Reproductions
If applicable, provide a reproduction on platforms like runkit

Additional context
Validator.js version: 13.15.20
Node.js version: 22.14.0
OS platform: linux

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