node-ejs-renderer/node_modules/wildcard/examples/strings.js

8 lines
138 B
JavaScript
Raw Permalink Normal View History

2024-06-09 13:55:01 -04:00
var wildcard = require('..');
console.log(wildcard('foo.*', 'foo.bar'));
// --> true
console.log(wildcard('foo.*', 'foo'));
// --> true