Lines Matching refs:flags
156 … var flags = nativ.replace.call(getNativeFlags(regex) + (addFlags || ""), duplicateFlags, "");
159 flags = nativ.replace.call(flags, new RegExp("[" + removeFlags + "]+", "g"), "");
163 regex = augment(self(regex.source, flags),
167 regex = augment(new RegExp(regex.source, flags), null, true);
320 self = function (pattern, flags) { argument
322 if (flags !== undef) {
339 return flags.indexOf(flag) > -1;
347 flags = flags === undef ? "" : String(flags);
349 …if (nativ.match.call(flags, duplicateFlags)) { // Don't use test/exec because they would update la…
357 flags = nativ.replace.call(flags + $1, duplicateFlags, "");
360 self.forEach(flags, /[\s\S]/, function (m) {
392 return augment(new RegExp(output.join(""), nativ.replace.call(flags, /[^gimy]+/g, "")),
468 self.cache = function (pattern, flags) { argument
469 var key = pattern + "/" + (flags || "");
470 return cache[key] || (cache[key] = self(pattern, flags));
854 self.union = function (patterns, flags) { argument
889 return self(output.join("|"), flags);