Skip to content

Url Validator supports not FQDN correctly #493

@anschm

Description

@anschm

Describe the bug

I think the url validator is not working correct. Because he does not support the correct syntax of FQDN which is described on wikipedia: https://en.wikipedia.org/wiki/Fully_qualified_domain_name.

The url has to start with http or www. But 'myhost.example.com' is also a valid FQDN.

If you enter the following urls into the url validator you get the following results:
http://myhost.example.com -> valid
www.myhost.example.com -> valid
myhost.example.com -> not valid (should be valid)

Expected Behavior

myhost.example.com is accepted by the url validator

Package Version

@rxweb/reactive-form-validators@latest

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions