From fc43a03547aec9ecba697e9cc8789d559f88faa8 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sat, 27 Sep 2025 23:38:45 +0200 Subject: [PATCH] rebuild urls Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- front/src/lib/components/index/search/datawells.svelte | 2 +- front/src/lib/components/index/search/id/row.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/lib/components/index/search/datawells.svelte b/front/src/lib/components/index/search/datawells.svelte index b58acbc..d9801d9 100644 --- a/front/src/lib/components/index/search/datawells.svelte +++ b/front/src/lib/components/index/search/datawells.svelte @@ -47,7 +47,7 @@ const domainRegex = /^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/; if (domainRegex.test(firstPart)) { - return firstPart; + return firstPart.replace("_", "-"); } return null; } diff --git a/front/src/lib/components/index/search/id/row.svelte b/front/src/lib/components/index/search/id/row.svelte index a648ecd..8e9f297 100644 --- a/front/src/lib/components/index/search/id/row.svelte +++ b/front/src/lib/components/index/search/id/row.svelte @@ -12,7 +12,7 @@ const domainRegex = /^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/; if (domainRegex.test(firstPart)) { - return firstPart; + return firstPart.replace("_", "-"); } return null; }