🐛 fixing profile data and some QA issues

This commit is contained in:
ChatonDeAru
2024-09-26 16:14:57 +02:00
parent 622841eed3
commit 4bc3a58b3e
18 changed files with 121 additions and 61 deletions

View File

@@ -0,0 +1,10 @@
export const stringToSlug = (str: string) => {
return str
.toLowerCase()
.replace(/ /g, '-')
.replace(/[^\w-]+/g, '')
}
export const lowerString = (str: string) => {
return str.trim().toLowerCase()
}