( commandsAndOperators: string[], )
| 249 | } |
| 250 | |
| 251 | export function filterControlOperators( |
| 252 | commandsAndOperators: string[], |
| 253 | ): string[] { |
| 254 | return commandsAndOperators.filter( |
| 255 | part => !(ALL_SUPPORTED_CONTROL_OPERATORS as Set<string>).has(part), |
| 256 | ) |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * @deprecated Legacy regex/shell-quote path. Only used when tree-sitter is |
no test coverage detected