MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / isWildcard

Function isWildcard

unit-test/matchModules.js:5–8  ·  view source on GitHub ↗
(filter)

Source from the content-addressed store, hash-verified

3const buildFiles = listOfTestModules.files;
4
5function isWildcard (filter) {
6 if (filter.includes('*')) return true;
7 return false;
8}
9
10function filterBy (wildcard, item) {
11 return new RegExp('^' + wildcard.replace(/\*/g, '.*') + '$').test(item);

Callers 1

matchWildCardsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected