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

Description
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.