(regexp, value)
| 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]); |
no test coverage detected