How to use the glob.fnmatch function in glob

To help you get started, we’ve selected a few glob examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github assetgraph / assetgraph / lib / util / urlTools.js View on Github external
return function(url) {
            return /^file:/.test(url) && glob.fnmatch(fsPattern, exports.fileUrlToFsPath(url));
        };
    });