mirror of
https://github.com/bower/bower.git
synced 2026-02-12 06:55:04 -05:00
29 lines
565 B
JavaScript
29 lines
565 B
JavaScript
var osJunk = [
|
|
// MacOSX
|
|
/^__MACOSX$/,
|
|
/^\.DS_Store/,
|
|
/^\.AppleDouble$/,
|
|
/^\.LSOverride$/,
|
|
/\.Trashes/,
|
|
/^\._.*/,
|
|
/^.Spotlight-V100$/,
|
|
/^Icon[\r\?]?/,
|
|
// Windows
|
|
/^ehthumbs\.db$/,
|
|
/^Thumbs\.db$/,
|
|
/^Desktop.ini$/
|
|
];
|
|
|
|
function isOsJunk(filename) {
|
|
return osJunk.some(function (extra) {
|
|
return extra.test(filename);
|
|
});
|
|
}
|
|
|
|
function isNotOsJunk(filename) {
|
|
return !isOsJunk(filename);
|
|
}
|
|
|
|
module.exports.isOsJunk = isOsJunk;
|
|
module.exports.isNotOsJunk = isNotOsJunk;
|
|
module.exports.osJunk = osJunk; |