fix: remove delimiter completion during key match #147

This commit is contained in:
Lykin 2024-02-03 15:58:13 +08:00
parent ce1b9b706f
commit a8109c4bb2
1 changed files with 2 additions and 3 deletions

View File

@ -601,9 +601,8 @@ const useBrowserStore = defineStore('browser', {
if (isEmpty(match)) {
match = '*'
} else if (!isRedisGlob(match)) {
const separator = this.getSeparator(server)
if (!endsWith(prefix, separator + '*')) {
match = prefix + separator + '*'
if (!endsWith(prefix, '*')) {
match = prefix + '*'
}
}
return this.scanKeys({ server, db, match, matchType, loadType: all ? 1 : 0 })