(token: string)
| 84 | } |
| 85 | |
| 86 | export 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 | |
| 98 | export function splitSelectorFromArgs( |
| 99 | args: string[], |
no outgoing calls
no test coverage detected