Display URL host on compliance page organization sidebar ENG-53

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-28 09:40:03 +04:00
parent d893e34e8e
commit baad2f8a34
4 changed files with 7 additions and 11 deletions

View File

@@ -30,11 +30,3 @@ export function slugify(str: string): string {
.replace(/[^a-z0-9 ]/g, "") // remove all chars not letters, numbers and spaces (to be replaced)
.replace(/\s+/g, "-");
}
export function domain(url: string): string {
const parts = url.split("//");
if (parts.length > 1) {
url = parts[1];
}
return url.split("/")[0];
}