How to use the reregexp.default function in reregexp

To help you get started, we’ve selected a few reregexp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github suchjs / such / lib / mockit / regexp.js View on Github external
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 () {

reregexp

Generate a random string match a given regular expression, suitable for mocking strings.

MIT
Latest version published 12 months ago

Package Health Score

55 / 100
Full package analysis