MCPcopy Create free account
hub / github.com/binux/qiandao / urlValidator

Function urlValidator

web/static/components/angularjs/angular.js:17124–17126  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

17122 textInputType(scope, element, attr, ctrl, $sniffer, $browser);
17123
17124 var urlValidator = function(value) {
17125 return validate(ctrl, 'url', ctrl.$isEmpty(value) || URL_REGEXP.test(value), value);
17126 };
17127
17128 ctrl.$formatters.push(urlValidator);
17129 ctrl.$parsers.push(urlValidator);

Callers

nothing calls this directly

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected