diff options
| author | Allen Hutchison <[email protected]> | 2025-05-07 12:30:32 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-07 12:30:32 -0700 |
| commit | 6b3ef9f93986a6c5f892b5f011b25b6826e522a1 (patch) | |
| tree | 3af7fda7863a72a27185b48630dad2e3526337d9 /packages/cli/src/ui/utils/commandUtils.ts | |
| parent | 46490263123bf855c40da35ef8be62f2b9b134b2 (diff) | |
Refactor: Enhance @-command, Autocomplete, and Input Stability (#279)
Diffstat (limited to 'packages/cli/src/ui/utils/commandUtils.ts')
| -rw-r--r-- | packages/cli/src/ui/utils/commandUtils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/ui/utils/commandUtils.ts b/packages/cli/src/ui/utils/commandUtils.ts index bcae7b6c..b17b264d 100644 --- a/packages/cli/src/ui/utils/commandUtils.ts +++ b/packages/cli/src/ui/utils/commandUtils.ts @@ -13,8 +13,8 @@ * @returns True if the query looks like an '@' command, false otherwise. */ export const isAtCommand = (query: string): boolean => - // Check if starts with @ OR has a space, then @, then a non-space character. - query.startsWith('@') || /\s@\S/.test(query); + // Check if starts with @ OR has a space, then @ + query.startsWith('@') || /\s@/.test(query); /** * Checks if a query string potentially represents an '/' command. |
