mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 20:52:49 +02:00
refactor(starter): upgrade to new version of gatsby
This commit is contained in:
6
internal/gatsby/utils/to-kebab-case.ts
Normal file
6
internal/gatsby/utils/to-kebab-case.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
const toKebabCase = (str: string = ""): string => str.toLowerCase()
|
||||
.replace(/[^\w\s]/gi, "")
|
||||
.split(" ").join("-")
|
||||
.split("_").join("-");
|
||||
|
||||
export default toKebabCase;
|
Reference in New Issue
Block a user