MCPcopy
hub / github.com/lingodotdev/lingo.dev / isDoubleStar

Function isDoubleStar

packages/cli/src/cli/utils/buckets.ts:332–332  ·  view source on GitHub ↗
(segment: string)

Source from the content-addressed store, hash-verified

330 const memo = new Map<string, boolean>();
331 const parent = new Map<string, { i2: number; j2: number }>();
332 const isDoubleStar = (segment: string) => segment === "**";
333 const segmentMatches = (patternSegment: string, sourceSegment: string) => {
334 const concrete = patternSegment.replaceAll("[locale]", locale);
335 return minimatch(sourceSegment, concrete, { dot: true, nocase: true });

Callers 2

dfsFunction · 0.85
alignPatternToSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected