mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-04-20 12:08:04 +08:00
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…
x
Reference in New Issue
Block a user