mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 19:05:41 +00:00
Update createSlug function
This commit is contained in:
parent
d87ee48501
commit
976e3a7ef6
@ -1,3 +1,3 @@
|
||||
export function createSlug(title: string) {
|
||||
return title.toLowerCase().replace(/\s+/g, '-')
|
||||
return title.toLowerCase().replace(/[.\s]+/g, '-')
|
||||
}
|
Loading…
Reference in New Issue
Block a user