From 1f0e79e934f2a8f955621b98703cce03bfd352b5 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 14 Aug 2025 09:26:54 +0700 Subject: [PATCH] chore: update handle download variant --- web-app/src/routes/hub/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web-app/src/routes/hub/index.tsx b/web-app/src/routes/hub/index.tsx index 7004f356e..bf6e06157 100644 --- a/web-app/src/routes/hub/index.tsx +++ b/web-app/src/routes/hub/index.tsx @@ -745,10 +745,16 @@ function Hub() { title={t('hub:downloadModel')} onClick={() => { addLocalDownloadingModel( - variant.model_id + variant.model_id.replace( + /[^a-zA-Z0-9/_\-.]/g, + '' + ) ) pullModel( - variant.model_id, + variant.model_id.replace( + /[^a-zA-Z0-9/_\-.]/g, + '' + ), variant.path ) }}