(input: string)
| 22 | import { WORKSPACE_ONLY_COMMAND_KEYS } from "@/constants/slashCommands"; |
| 23 | |
| 24 | function tokenizeCommandLine(input: string): string[] { |
| 25 | return (input.match(/(?:[^\s"]+|"[^"]*")+/g) ?? []).map((token) => |
| 26 | token.replace(/^"(.*)"$/, "$1") |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Parse multiline command input into first-line tokens and remaining message. |
no test coverage detected