From a8109c4bb209337e6608b3cb60f81c5a252d2177 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Sat, 3 Feb 2024 15:58:13 +0800 Subject: [PATCH] fix: remove delimiter completion during key match #147 --- frontend/src/stores/browser.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/stores/browser.js b/frontend/src/stores/browser.js index 7a94be1..69b0616 100644 --- a/frontend/src/stores/browser.js +++ b/frontend/src/stores/browser.js @@ -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 })