MCPcopy Create free account
hub / github.com/nodejs/node / isImplicitGlob

Function isImplicitGlob

test/fixtures/snapshot/typescript.js:20551–20553  ·  view source on GitHub ↗

* An "includes" path "foo" is implicitly a glob "foo/** /*" (without the space) if its last component has no extension, * and does not contain any glob characters itself.

(lastPathComponent)

Source from the content-addressed store, hash-verified

20549 * and does not contain any glob characters itself.
20550 */
20551 function isImplicitGlob(lastPathComponent) {
20552 return !/[.*?]/.test(lastPathComponent);
20553 }
20554 ts.isImplicitGlob = isImplicitGlob;
20555 function getPatternFromSpec(spec, basePath, usage) {
20556 var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);

Callers 1

getSubPatternFromSpecFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected