strings.js 138 B

1234567
  1. var wildcard = require('..');
  2. console.log(wildcard('foo.*', 'foo.bar'));
  3. // --> true
  4. console.log(wildcard('foo.*', 'foo'));
  5. // --> true