Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Allow to overwrite URL_REGEXP in urlInputType:urlValidator #5757

Closed
@raulfraile

Description

@raulfraile

Apparently, when using type="url" with ngPattern to validate the data, angular checks first if the URL is valid according to the URL_REGEXP regular expression, and then validates the pattern. So, the data will be valid if matches both regexps.

As URL_REGEXP only allows basic/standard protocols (http, https and ftp), it is not possible to use the url type for URLs such as git://..., ssh://... or just myprotocol://..., which can make sense to use in an application.

Having an option to disable the url validation when using ngPattern would fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions