@splitsoftware/splitio-commons
Version:
Split JavaScript SDK common components
12 lines (11 loc) • 388 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringMatcherContext = void 0;
function stringMatcherContext(ruleAttr) {
var regex = new RegExp(ruleAttr);
return function stringMatcher(runtimeAttr) {
var regexMatches = regex.test(runtimeAttr);
return regexMatches;
};
}
exports.stringMatcherContext = stringMatcherContext;