NUEVA BUSQUEDA DE DATOS SRI
This commit is contained in:
9
node_modules/nodemon/lib/monitor/match.js
generated
vendored
9
node_modules/nodemon/lib/monitor/match.js
generated
vendored
@@ -157,6 +157,12 @@ function match(files, monitor, ext) {
|
||||
if (s.indexOf('!' + cwd) === 0) {
|
||||
return s;
|
||||
}
|
||||
|
||||
// if it starts with a period, then let's get the relative path
|
||||
if (s.indexOf('!.') === 0) {
|
||||
return '!' + path.resolve(cwd, s.substring(1));
|
||||
}
|
||||
|
||||
return '!**' + (prefix !== path.sep ? path.sep : '') + s.slice(1);
|
||||
}
|
||||
|
||||
@@ -195,12 +201,13 @@ function match(files, monitor, ext) {
|
||||
for (var i = 0; i < rules.length; i++) {
|
||||
if (rules[i].slice(0, 1) === '!') {
|
||||
if (!minimatch(file, rules[i], minimatchOpts)) {
|
||||
debug('ignored', file, 'rule:', rules[i]);
|
||||
ignored++;
|
||||
matched = true;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
debug('match', file, minimatch(file, rules[i], minimatchOpts));
|
||||
debug('matched', file, 'rule:', rules[i]);
|
||||
if (minimatch(file, rules[i], minimatchOpts)) {
|
||||
watched++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user