Skip to content

Commit f58f7c5

Browse files
Merge pull request #1041 from RedisInsight/feature/bugfix
refactoring redisearch arguments
2 parents fea2615 + f432a77 commit f58f7c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redisinsight/ui/src/packages/redisearch/src/utils/parseResponse.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ const getChunkCountSearch = (command: string = '') => {
8585

8686
if (getIsKeysOnly(command)) count = onlyKeysChunkCount
8787

88-
specialArgs.forEach((arg) => command.includes(arg) && ++count)
88+
specialArgs.forEach((arg) => command.toUpperCase().includes(arg) && ++count)
8989

9090
return count
9191
}
9292

9393
const getIsKeysOnly = (command: string = '') => (
94-
command.toLowerCase().includes(CommandArgument.NoContent.toLowerCase())
95-
|| command.toLowerCase().includes(`${CommandArgument.Return.toLowerCase()} 0`)
94+
command.toUpperCase().includes(CommandArgument.NoContent)
95+
|| command.toUpperCase().includes(`${CommandArgument.Return} 0`)
9696
)
9797

9898
export {

0 commit comments

Comments
 (0)