Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getExpression(exp: string): Matcher {
const matcherKey = exp;
let expression = this.matcherMap.get(matcherKey);
if (!expression) {
expression = compile(exp);
this.matcherMap.set(matcherKey, expression);
}
return expression;
}