Skip to content

Commit c4a4edc

Browse files
committed
add additional replace
1 parent cc99cda commit c4a4edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operations/kebabcase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function kebabcase(str: string): string {
22
return str.replace(/([a-z])([A-Z])/g, "$1-$2")
33
.replace(/[\s_/]+/g, '-')
4-
.toLowerCase();
4+
.toLowerCase().replace('/', '-');
55
}

0 commit comments

Comments
 (0)