From c4a4edcf433ee8098e1c615c4de78030b15b905e Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Thu, 27 Jul 2023 11:58:30 -0700 Subject: [PATCH] add additional replace --- src/operations/kebabcase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/kebabcase.ts b/src/operations/kebabcase.ts index 4a37224..6a1d1b7 100644 --- a/src/operations/kebabcase.ts +++ b/src/operations/kebabcase.ts @@ -1,5 +1,5 @@ export function kebabcase(str: string): string { return str.replace(/([a-z])([A-Z])/g, "$1-$2") .replace(/[\s_/]+/g, '-') - .toLowerCase(); + .toLowerCase().replace('/', '-'); } \ No newline at end of file