Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
switch (node.prefix) {
case '!':
case '^':
return '(?:(?!(?:';
case '@':
case '+':
case '*':
case '?':
return '(?:';
default: {
return node.val;
}
}
}
return new snapdragon.Renderer(extend({}, options))
.set('negation', function(node) {
return '(?!^(?:';
})
.set('escaped', function(node) {
return node.val;
})
/**
* Parens
*/
.set('parens.open', extglobOpen)
.set('parens.empty', function(node) {
return '.?';
})
.set('extglob.open', extglobOpen)