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; }