From ec1bc81b88b73150421a040571ab1d74e04cf211 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 15 Dec 2023 12:05:59 +0700 Subject: [PATCH] fix: regex --- Services/client/src/stores/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/client/src/stores/storage.ts b/Services/client/src/stores/storage.ts index b41b2dd..0c464d6 100644 --- a/Services/client/src/stores/storage.ts +++ b/Services/client/src/stores/storage.ts @@ -355,7 +355,7 @@ const useStorage = defineStore('storageStore', () => { const arrayPath: string[] = path.split('/').filter(Boolean) await api.post(`${import.meta.env.VITE_API_ENDPOINT}storage/folder`, { path: arrayPath, - name: name.replace(/^./, ''), + name: name.replace(/^\./, ''), }) } loader.hide()