shift73k/assets_old/node_modules/wildcard/examples/strings.js

7 lines
138 B
JavaScript
Executable file

var wildcard = require('..');
console.log(wildcard('foo.*', 'foo.bar'));
// --> true
console.log(wildcard('foo.*', 'foo'));
// --> true