(matchCommand: string)
| 90 | value.replace(/[|\\{}()[\]^$+?.]/g, '\\$&') |
| 91 | |
| 92 | const createCommandPattern = (matchCommand: string): string => |
| 93 | `^${matchCommand.split('*').map(escapeRegex).join('\\S*')}(?:\\s|$)` |
| 94 | |
| 95 | const doesCommandMatch = (query: string, matchCommand: string): boolean => |
| 96 | testRegex(createCommandPattern(matchCommand), query) |