MCPcopy Index your code
hub / github.com/callstack/agent-device / isSelectorToken

Function isSelectorToken

src/utils/selectors-parse.ts:86–96  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

84}
85
86export function isSelectorToken(token: string): boolean {
87 const trimmed = token.trim();
88 if (!trimmed) return false;
89 if (trimmed === '||') return true;
90 const equalsIdx = trimmed.indexOf('=');
91 if (equalsIdx !== -1) {
92 const key = trimmed.slice(0, equalsIdx).trim().toLowerCase() as SelectorKey;
93 return ALL_KEYS.has(key);
94 }
95 return ALL_KEYS.has(trimmed.toLowerCase() as SelectorKey);
96}
97
98export function splitSelectorFromArgs(
99 args: string[],

Callers 2

splitSelectorFromArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected