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