Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/share/.cache/yarn/v6/npm-dotignore-0.1.2-integrity/node_modules/dotignore/ drwxr-xr-x | |
| Viewing file: Select action/file-type: 'use strict';
var minimatch = require('minimatch');
var path = require('path');
function IgnoreMatcher(str) {
var negated = [];
this.negated = negated;
var rooted = [];
this.rooted = rooted;
this.matchers = str.split(/\r?\n|\r/).map(function (line) {
var negatedLine = line[0] === '!';
var commentLine = line[0] === '#';
var rootedLine = line[0] === '/';
if (negatedLine || commentLine || rootedLine) {
line = line.slice(1);
}
var emptyLine = line === '';
if (emptyLine) {
return null;
}
var isShellGlob = line.indexOf('/') >= 0;
negated[negated.length] = negatedLine;
rooted[rooted.length] = rootedLine || isShellGlob;
return minimatch.makeRe(line, {
comment: commentLine,
empty: emptyLine,
matchBase: !rootedLine,
negated: true // negated
});
}).filter(Boolean);
return this;
}
IgnoreMatcher.prototype.delimiter = path.sep;
IgnoreMatcher.prototype.shouldIgnore = function (filename) {
var isMatching = false;
for (var i = 0; i < this.matchers.length; i++) {
var matcher = this.matchers[i];
if (this.rooted[i]) {
if (matcher.test(filename)) {
isMatching = !this.negated[i];
}
} else if (filename.split(this.delimiter).some(function (part) {
return matcher.test(part);
})) {
isMatching = !this.negated[i];
}
}
return isMatching;
};
exports.createMatcher = function (ignoreFileStr) {
return new IgnoreMatcher(ignoreFileStr);
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]-- |