NET-Web-API-w-Angular/my-app/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