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

Function isQueryNameToken

src/search/query-utils.ts:206–209  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

204 * ASCII token reads exactly as the ASCII-only test this replaces read it.
205 */
206export function isQueryNameToken(token: string): boolean {
207 return meetsQueryWordFloor(token)
208 && /^[\p{L}\p{Nl}_$][\p{L}\p{N}\p{M}_$]*(?:(?:::|\.)[\p{L}\p{N}\p{M}_$]+)*$/u.test(token);
209}
210
211/**
212 * `text` with every word that has a non-ASCII letter but no Han, kana or

Callers 2

oneSymbolQueryNameFunction · 0.90

Calls 1

meetsQueryWordFloorFunction · 0.85

Tested by

no test coverage detected