mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 19:55:42 +00:00
Updated regx pattern in createSlug function
This commit is contained in:
parent
2781194d43
commit
3e8af379cf
@ -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