(query: string)
| 48 | } |
| 49 | |
| 50 | export function parseFlowQuery(query: string): FlowQuery | null { |
| 51 | const match = FLOW_SENTENCE.exec(query) ?? FLOW_ARROW.exec(query); |
| 52 | if (!match) return null; |
| 53 | const from = lastSegment(match[1] as string); |
| 54 | const to = lastSegment(match[2] as string); |
| 55 | if (!from || !to || from === to) return null; |
| 56 | return { from, to }; |
| 57 | } |
| 58 | |
| 59 | /* ----------------------------------------------------------------- rows -- */ |
| 60 |
no test coverage detected