Lines Matching refs:regex
44 let regex = arguments[0];
45 if (ArgumentMatchers.isRegExp(regex)) {
46 return regex;
48 throw Error('not a regex');
57 let regex = arguments[1];
64 if (typeof arg === 'string' && !regex) {
68 if (typeof arg === 'boolean' && !regex) {
72 if (typeof arg === 'number' && !regex) {
76 if (typeof arg === 'object' && !regex) {
80 if (typeof arg === 'function' && !regex) {
84 if (typeof arg === 'string' && regex) {
85 return regex.test(arg);