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

Function validateRegex

web/static/components/angularjs/angular.js:17025–17027  ·  view source on GitHub ↗
(regexp, value)

Source from the content-addressed store, hash-verified

17023
17024 if (pattern) {
17025 var validateRegex = function(regexp, value) {
17026 return validate(ctrl, 'pattern', ctrl.$isEmpty(value) || regexp.test(value), value);
17027 };
17028 match = pattern.match(/^\/(.*)\/([gim]*)$/);
17029 if (match) {
17030 pattern = new RegExp(match[1], match[2]);

Callers 1

textInputTypeFunction · 0.85

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected