Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ToRegexp.prototype.generate = function () {
var instance = this.instance;
var _a = this.params, Config = _a.Config, Regexp = _a.Regexp;
if (!instance) {
instance = this.instance = new reregexp_1.default(Regexp.rule, {
namedGroupConf: Config || {},
});
}
return instance.build();
};
ToRegexp.prototype.test = function () {