MCPcopy Create free account
hub / github.com/backnotprop/plannotator / normalizeSemanticDiffFileExts

Function normalizeSemanticDiffFileExts

packages/shared/semantic-diff.ts:389–394  ·  view source on GitHub ↗
(fileExts: string[] | undefined)

Source from the content-addressed store, hash-verified

387}
388
389export function normalizeSemanticDiffFileExts(fileExts: string[] | undefined): string[] {
390 return Array.from(new Set((fileExts ?? [])
391 .map((ext) => ext.trim())
392 .filter(Boolean)
393 .map((ext) => ext.startsWith(".") ? ext : `.${ext}`)));
394}
395
396export function semanticDiffFileExtsFromSearchParams(params: URLSearchParams): string[] {
397 const requested = [

Callers 3

semanticDiffCacheKeyFunction · 0.85
runSemanticDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected