import minimatch from 'minimatch' ; import { logger } from '../../../logger' ; export function matchesAnyPattern ( val , patterns ) { const res = patterns . some ( ( pattern ) => pattern === val + '/' || minimatch ( val , pattern , { dot : true } ) ) ; logger . trace ( { val , patterns , res } , `matchesAnyPattern` ) ; return res ; }