From cd8e7f1ad14e0414dce79bc181d8c0ebaa756565 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Fri, 9 Dec 2022 10:16:17 +0000 Subject: [PATCH] Only add space for forward slash --- .../datasource/[selectedDatasource]/rest/[query]/index.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte index c902c533e6..b0f00e5e9f 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte @@ -120,9 +120,9 @@ query.flags.urlName = true query.name = url - ?.replaceAll(/(http)|(https)/g, "") + ?.replace(/(http)|(https)|[{}:]/g, "") ?.replaceAll(".", "_") - ?.replace(/[:/{}]/g, " ") + ?.replaceAll("/", " ") ?.trim() || inputUrl } }