From 21b0ff96626932d3862f87a9df4d174314d7bae1 Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Fri, 20 Mar 2026 17:59:43 -0700 Subject: [PATCH] Fix incomplete string escaping in public_model_hub.tsx Use replaceAll() instead of replace() to ensure all occurrences of "*" are replaced, not just the first one. Co-Authored-By: Claude Opus 4.6 --- ui/litellm-dashboard/src/components/public_model_hub.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/public_model_hub.tsx b/ui/litellm-dashboard/src/components/public_model_hub.tsx index 21974ad9729..59c9c6d9cb3 100644 --- a/ui/litellm-dashboard/src/components/public_model_hub.tsx +++ b/ui/litellm-dashboard/src/components/public_model_hub.tsx @@ -1376,7 +1376,7 @@ const PublicModelHub: React.FC = ({ accessToken, isEmbedded {selectedModel.model_group}, you can use any string ( - {selectedModel.model_group.replace("*", "my-custom-value")} + {selectedModel.model_group.replaceAll("*", "my-custom-value")} ) that matches this pattern.