Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const checkOutput = (input, output, publicFolder, replaceInPlace) => {
let reg = new RegExp('\\$1');
if (reg.test(output)) {
if (Array.isArray(input)) {
const outputMin = input.map(file =>
utils.setFileNameMin(file, output, replaceInPlace ? null : publicFolder, replaceInPlace)
);
return { output: outputMin };
} else {
return { output: utils.setFileNameMin(input, output, replaceInPlace ? null : publicFolder, replaceInPlace) };
}
}
};
const outputMin = input.map(file =>
utils.setFileNameMin(file, output, replaceInPlace ? null : publicFolder, replaceInPlace)
);