Exit Full View

Games Cupboard / build / js / node_modules / wildcard / examples / strings.js

var wildcard = require('..');

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

console.log(wildcard('foo.*', 'foo'));
// --> true