Greetings! I have the following code that is trying to ignore CVS directories, but the last 5 variations of regex I tried do not appear to work as expected, but I've tested the regex online and in other code, so the format should be ok. Any tips on what I might be doing wrong are appreciated.
` code snippet
cpr('./public', 'build/public/', {
deleteFirst: true,
overwrite: true,
confirm: true,
filter: '^((?!CVS).)*$'
}, function (err) {
if (err) {
console.log(colors.red.bold('Something went wrong during copy: '), err.stack);
return console.error(err);
}
console.log(colors.blue.bold('...copied ./public to build directory!'));
});
Greetings! I have the following code that is trying to ignore CVS directories, but the last 5 variations of regex I tried do not appear to work as expected, but I've tested the regex online and in other code, so the format should be ok. Any tips on what I might be doing wrong are appreciated.
` code snippet
`