MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / queryMightContainPaths

Function queryMightContainPaths

src/search/query-paths.ts:87–91  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

85 * snake_case-with-a-dash hybrids from firing it.
86 */
87export function queryMightContainPaths(query: string): boolean {
88 return /[/\\]/.test(query)
89 || /\.[A-Za-z][A-Za-z0-9]{0,7}(?=[\s,;:)\]'"`]|$)/.test(query)
90 || /(?:^|[^-\w])[A-Za-z0-9]+(?:-[A-Za-z0-9]+)+(?=[^-\w]|$)/.test(query);
91}
92
93/**
94 * Longest span→suffix walk tried per span. 8 covers an absolute macOS path

Callers 2

handleExploreMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected