From 482743bf3a4a0f4382887e3caaaecf6bde58b170 Mon Sep 17 00:00:00 2001 From: MasutaYunikon Date: Wed, 8 Apr 2026 15:13:35 +0200 Subject: [PATCH] fix: typo --- src/components/FolderPicker.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/FolderPicker.vue b/src/components/FolderPicker.vue index b987ace..af71b6f 100644 --- a/src/components/FolderPicker.vue +++ b/src/components/FolderPicker.vue @@ -68,7 +68,8 @@
{{ current }} -
@@ -91,6 +92,11 @@ const parent = ref(null) const loading = ref(false) const error = ref('') +// FIX : la regex /\/+$/ dans un @click inline fait planter le parser Vue +function selectCurrent() { + emit('select', current.value.replace(/\/+$/, '') || '/') +} + function joinPath(base: string, name: string): string { if (base === '/') return `/${name}` const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base