fix: remove delimiter completion during key match #147
This commit is contained in:
parent
ce1b9b706f
commit
a8109c4bb2
|
@ -601,9 +601,8 @@ const useBrowserStore = defineStore('browser', {
|
||||||
if (isEmpty(match)) {
|
if (isEmpty(match)) {
|
||||||
match = '*'
|
match = '*'
|
||||||
} else if (!isRedisGlob(match)) {
|
} else if (!isRedisGlob(match)) {
|
||||||
const separator = this.getSeparator(server)
|
if (!endsWith(prefix, '*')) {
|
||||||
if (!endsWith(prefix, separator + '*')) {
|
match = prefix + '*'
|
||||||
match = prefix + separator + '*'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this.scanKeys({ server, db, match, matchType, loadType: all ? 1 : 0 })
|
return this.scanKeys({ server, db, match, matchType, loadType: all ? 1 : 0 })
|
||||||
|
|
Loading…
Reference in New Issue