(comparator: string)
| 21 | }; |
| 22 | |
| 23 | function parseComparator(comparator: string): Comparator | null { |
| 24 | const match = comparator.match(COMPARATOR_REGEXP); |
| 25 | const groups = match?.groups; |
| 26 | |
| 27 | if (!groups) return null; |
| 28 | |
| 29 | const { operator } = groups as ComparatorRegExpGroup; |
| 30 | return { operator: operator || undefined, ...ANY }; |
| 31 | } |
| 32 | |
| 33 | function isWildcard(id?: string): boolean { |
| 34 | return !id || id.toLowerCase() === "x" || id === "*"; |
no test coverage detected