10 lines
163 B
JavaScript
Executable file
10 lines
163 B
JavaScript
Executable file
var wildcard = require('..');
|
|
var testdata = [
|
|
'a.b.c',
|
|
'a.b',
|
|
'a',
|
|
'a.b.d'
|
|
];
|
|
|
|
console.log(wildcard('a.b.*', testdata));
|
|
// --> ['a.b.c', 'a.b', 'a.b.d']
|