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

Function validateRegex

test/fixtures/foo.js:17079–17081  ·  view source on GitHub ↗
(regexp, value)

Source from the content-addressed store, hash-verified

17077
17078 if (pattern) {
17079 var validateRegex = function(regexp, value) {
17080 return validate(ctrl, 'pattern', ctrl.$isEmpty(value) || regexp.test(value), value);
17081 };
17082 match = pattern.match(/^\/(.*)\/([gim]*)$/);
17083 if (match) {
17084 pattern = new RegExp(match[1], match[2]);

Callers 1

textInputTypeFunction · 0.85

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected