Update checked-in dependencies
This commit is contained in:
parent
c508d620dd
commit
8fa56f3f78
26 changed files with 403 additions and 175 deletions
20
node_modules/picomatch/lib/scan.js
generated
vendored
Executable file → Normal file
20
node_modules/picomatch/lib/scan.js
generated
vendored
Executable file → Normal file
|
|
@ -32,7 +32,8 @@ const depth = token => {
|
|||
/**
|
||||
* Quickly scans a glob pattern and returns an object with a handful of
|
||||
* useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
|
||||
* `glob` (the actual pattern), and `negated` (true if the path starts with `!`).
|
||||
* `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
|
||||
* with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
|
||||
*
|
||||
* ```js
|
||||
* const pm = require('picomatch');
|
||||
|
|
@ -66,6 +67,7 @@ const scan = (input, options) => {
|
|||
let braceEscaped = false;
|
||||
let backslashes = false;
|
||||
let negated = false;
|
||||
let negatedExtglob = false;
|
||||
let finished = false;
|
||||
let braces = 0;
|
||||
let prev;
|
||||
|
|
@ -177,6 +179,9 @@ const scan = (input, options) => {
|
|||
isGlob = token.isGlob = true;
|
||||
isExtglob = token.isExtglob = true;
|
||||
finished = true;
|
||||
if (code === CHAR_EXCLAMATION_MARK && index === start) {
|
||||
negatedExtglob = true;
|
||||
}
|
||||
|
||||
if (scanToEnd === true) {
|
||||
while (eos() !== true && (code = advance())) {
|
||||
|
|
@ -231,13 +236,15 @@ const scan = (input, options) => {
|
|||
isBracket = token.isBracket = true;
|
||||
isGlob = token.isGlob = true;
|
||||
finished = true;
|
||||
|
||||
if (scanToEnd === true) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (scanToEnd === true) {
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
|
||||
|
|
@ -328,7 +335,8 @@ const scan = (input, options) => {
|
|||
isGlob,
|
||||
isExtglob,
|
||||
isGlobstar,
|
||||
negated
|
||||
negated,
|
||||
negatedExtglob
|
||||
};
|
||||
|
||||
if (opts.tokens === true) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue