25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(redis): preserve asterisk wildcard in fuzzy key search
t8y2083327a551f1
diff --git a/apps/desktop/src/lib/redisKeyPattern.ts b/apps/desktop/src/lib/redisKeyPattern.tsindex 388edacbe4..dc8ced81e3 100644--- a/apps/desktop/src/lib/redisKeyPattern.ts+++ b/apps/desktop/src/lib/redisKeyPattern.ts@@ -1,11 +1,12 @@const REDIS_GLOB_SPECIAL_CHARS = /[\\*?[\]]/g;+const REDIS_GLOB_SPECIAL_CHARS_FUZZY = /[\\?[\]]/g;-export function escapeRedisGlobText(value: string): string {- return value.replace(REDIS_GLOB_SPECIAL_CHARS, "\\$&");+export function escapeRedisGlobText(value: string, fuzzy = false): string {+ return value.replace(fuzzy ? REDIS_GLOB_SPECIAL_CHARS_FUZZY : REDIS_GLOB_SPECIAL_CHARS, "\\$&");}export function redisKeySearchPattern(value: string, fuzzy: boolean): string {const pattern = value.trim();if (!pattern) return "*";- return fuzzy ? `*${escapeRedisGlobText(pattern)}*` : pattern;+ return fuzzy ? `*${escapeRedisGlobText(pattern, fuzzy)}*` : pattern;}