This website requires JavaScript.
Explore
Help
Sign In
r-freeman
/
portfolio
Watch
1
Star
0
Fork
0
You've already forked portfolio
mirror of
https://github.com/r-freeman/portfolio.git
synced
2024-11-23 00:05:41 +00:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
97a6f1ac59
portfolio
/
lib
/
createSlug.ts
3 lines
101 B
TypeScript
Raw
Normal View
History
Unescape
Escape
Added page views functionality
2023-01-17 21:24:16 +00:00
export
function
createSlug
(
title
:
string
)
{
Updated regx pattern in createSlug function
2023-02-11 21:40:29 +00:00
return
title
.
toLowerCase
(
)
.
replace
(
/[.,\s]+/g
,
'-'
)
Added page views functionality
2023-01-17 21:24:16 +00:00
}
Reference in New Issue
Copy Permalink