How to use the expand-brackets.parsers function in expand-brackets

To help you get started, we’ve selected a few expand-brackets 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 micromatch / extglob / lib / parsers.js View on Github external
function parsers(extglob) {
  extglob.state = extglob.state || {};

  /**
   * Use `expand-brackets` parsers
   */

  extglob.use(brackets.parsers);
  extglob.parser.sets.paren = extglob.parser.sets.paren || [];
  extglob.parser

    /**
     * Extglob open: "*("
     */

    .capture('paren.open', function() {
      var parsed = this.parsed;
      var pos = this.position();
      var m = this.match(/^([!@*?+])?\(/);
      if (!m) return;

      var prev = this.prev();
      var prefix = m[1];
      var val = m[0];
github ifgyong / demo / React-native / Helloword / node_modules / metro-bundler / node_modules / sane / node_modules / extglob / lib / parsers.js View on Github external
function parsers(extglob) {
    extglob.state = extglob.state || {};

    /**
     * Use `expand-brackets` parsers
     */

    extglob.use(brackets.parsers);
    extglob.parser.sets.paren = extglob.parser.sets.paren || [];
    extglob.parser

    /**
     * Extglob open: "*("
     */

        .capture('paren.open', function () {
            var parsed = this.parsed;
            var pos = this.position();
            var m = this.match(/^([!@*?+])?\(/);
            if (!m) return;

            var prev = this.prev();
            var prefix = m[1];
            var val = m[0];

expand-brackets

Expand POSIX bracket expressions (character classes) in glob patterns.

MIT
Latest version published 7 years ago

Package Health Score

71 / 100
Full package analysis

Popular expand-brackets functions