Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function ignore(file) { return /[\/\\]\./.test(file) || ignorepatterns.test(path.basename(file)) }
A regular expression that matches common filenames that we want to ignore