(input: string)
| 120 | } |
| 121 | |
| 122 | export function getSlashCommandQuery(input: string): string | null { |
| 123 | const match = input.match(/^\s*\/([^\s]*)$/) |
| 124 | return match ? normalizeSlashToken(match[1]) : null |
| 125 | } |
| 126 | |
| 127 | export function filterSlashCommands(commands: SlashCommandOption[], query: string): SlashCommandOption[] { |
| 128 | return filterPromptCommands(commands, normalizeSlashToken(query)) |
no test coverage detected