Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function extglobParser(options) {
var parser = new snapdragon.Parser(extend({}, options));
function set(name, re) {
parser.set(name, function() {
var pos = this.position();
var m = this.match(re);
if (!m) return;
var inside = {
braces: this.isInside('braces'),
brackets: this.isInside('brackets'),
parens: this.isInside('parens')
};
inside.any = (inside.braces || inside.brackets || inside.parens);
if (name === 'globstar') {
this.pattern.hasGlobstar = true;
}