MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / urlInputType

Function urlInputType

test/fixtures/foo.js:17175–17184  ·  view source on GitHub ↗
(scope, element, attr, ctrl, $sniffer, $browser)

Source from the content-addressed store, hash-verified

17173}
17174
17175function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {
17176 textInputType(scope, element, attr, ctrl, $sniffer, $browser);
17177
17178 var urlValidator = function(value) {
17179 return validate(ctrl, 'url', ctrl.$isEmpty(value) || URL_REGEXP.test(value), value);
17180 };
17181
17182 ctrl.$formatters.push(urlValidator);
17183 ctrl.$parsers.push(urlValidator);
17184}
17185
17186function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
17187 textInputType(scope, element, attr, ctrl, $sniffer, $browser);

Callers

nothing calls this directly

Calls 1

textInputTypeFunction · 0.85

Tested by

no test coverage detected