Files
hackathon-v-escape-4ff8b5a6…/frontend/node_modules/picomatch/index.js
marianesaldana 80dbd947e5 Initial commit
2026-05-23 08:59:34 -06:00

28 lines
801 B
JavaScript

'use strict';
const os = require('os');
const pico = require('./lib/picomatch');
const isWindows = os.platform() === 'win32';
function picomatch(glob, options, returnState = false) {
// default to os.platform()
if (options && (options.windows === null || options.windows === undefined)) {
// don't mutate the original options object
options = { ...options, windows: isWindows };
}
return pico(glob, options, returnState);
}
module.exports = picomatch;
// public api
module.exports.test = pico.test;
module.exports.matchBase = pico.matchBase;
module.exports.isMatch = pico.isMatch;
module.exports.parse = pico.parse;
module.exports.scan = pico.scan;
module.exports.compileRe = pico.compileRe;
module.exports.toRegex = pico.toRegex;
// for tests
module.exports.makeRe = pico.makeRe;