How to use the reregexp 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 / src / mockit / regexp.ts View on Github external
public generate() {
    let { instance } = this;
    const { Config, Regexp } = this.params;
    if(!instance) {
      instance = this.instance = new RegexpParser(Regexp.rule, {
        namedGroupConf: Config || {},
      });
    }
    return instance.build();
  }
  public test() {

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