We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4adb78d commit 45b2edeCopy full SHA for 45b2ede
redisinsight/ui/src/utils/plugins.ts
@@ -4,7 +4,7 @@ import { getBaseApiUrl } from 'uiSrc/utils/common'
4
export const getVisualizationsByCommand = (query: string, visualizations: IPluginVisualization[]) =>
5
visualizations.filter((visualization: IPluginVisualization) =>
6
visualization.matchCommands.some((matchCommand) =>
7
- query.startsWith(matchCommand) || (new RegExp(matchCommand.toLowerCase())).test(query.toLowerCase())))
+ query.startsWith(matchCommand) || (new RegExp(`^${matchCommand}`, 'i')).test(query)))
8
9
export const urlForAsset = (basePluginUrl: string, path: string) => {
10
const baseApiUrl = getBaseApiUrl()
0 commit comments