mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 23:35:40 +00:00
Update createSlug function
This commit is contained in:
parent
d87ee48501
commit
976e3a7ef6
@ -1,3 +1,3 @@
|
|||||||
export function createSlug(title: string) {
|
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