amis-rpc-design/node_modules/wildcard/examples/strings.js

8 lines
138 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
var wildcard = require('..');
console.log(wildcard('foo.*', 'foo.bar'));
// --> true
console.log(wildcard('foo.*', 'foo'));
// --> true