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-13 17:05:42 +00:00
Code
Issues
Actions
Packages
Projects
Releases
Wiki
Activity
c91fbc6d9f
portfolio
/
lib
/
createSlug.ts
3 lines
100 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
)
{
Update createSlug function
2023-01-17 21:59:05 +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