We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc99cda commit c4a4edcCopy full SHA for c4a4edc
src/operations/kebabcase.ts
@@ -1,5 +1,5 @@
1
export function kebabcase(str: string): string {
2
return str.replace(/([a-z])([A-Z])/g, "$1-$2")
3
.replace(/[\s_/]+/g, '-')
4
- .toLowerCase();
+ .toLowerCase().replace('/', '-');
5
}
0 commit comments