8 lines
138 B
JavaScript
8 lines
138 B
JavaScript
var wildcard = require('..');
|
|
|
|
console.log(wildcard('foo.*', 'foo.bar'));
|
|
// --> true
|
|
|
|
console.log(wildcard('foo.*', 'foo'));
|
|
// --> true
|