From 42b69e44a26844eae12ffc80b1c69d8408f5b417 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 15 Sep 2023 08:35:24 -0700 Subject: [PATCH] replace spaces in tab slugify --- src/components/tab.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tab.jsx b/src/components/tab.jsx index bcccd994..c44c88a2 100644 --- a/src/components/tab.jsx +++ b/src/components/tab.jsx @@ -4,7 +4,7 @@ import classNames from "classnames"; import { TabContext } from "utils/contexts/tab"; export function slugify(tabName) { - return tabName ? encodeURIComponent(tabName.toLowerCase()) : '' + return tabName ? encodeURIComponent(tabName.replace(/\s+/g, '-').toLowerCase()) : '' } export default function Tab({ tab }) {