Comparing version 1.1.0 to 1.1.1
@@ -61,3 +61,3 @@ 'use strict'; | ||
let suffix = opts.contains ? '' : '$'; | ||
let wrap = str => prefix + str + suffix; | ||
let wrap = str => `${prefix}(?:${str})${suffix}`; | ||
let negate = str => `${prefix}(?!^${str}$).*${suffix}`; | ||
@@ -356,4 +356,6 @@ | ||
if (opts.bash || paren.stash.includes(slash) || block.nodes.length) { | ||
star = '.*?'; | ||
if (paren.negated || opts.bash || block.nodes.length) { | ||
if (paren.stash.includes(slash) || !paren.nodes.some(node => node.type === 'star')) { | ||
star = '.*?'; | ||
} | ||
} | ||
@@ -494,2 +496,3 @@ | ||
if (prev === '/') { | ||
block.nodes.pop(); | ||
block.stash.pop(); | ||
@@ -505,3 +508,3 @@ append(`(?:${opts.relaxSlashes ? '' : ONE_CHAR}|${slash}`); | ||
} else { | ||
queue = `${slash}|)`; | ||
queue = `${slash}|${ONE_CHAR})`; | ||
} | ||
@@ -626,2 +629,3 @@ } else { | ||
case '/': | ||
let lastNode = block.nodes[block.nodes.length - 1]; | ||
append(slash, { type: 'slash' }); | ||
@@ -739,3 +743,2 @@ if (peek() === '!' && peek(2) === '(') { | ||
state.source = state.wrap(state.output); | ||
ast = void 0; | ||
return state; | ||
@@ -742,0 +745,0 @@ }; |
{ | ||
"name": "picomatch", | ||
"description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "https://github.com/folder/picomatch", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53918
8
1047