Simplify and fix cards
This commit is contained in:
parent
f9540abdef
commit
fcf7f64acd
3 changed files with 19 additions and 20 deletions
2
src/helper/title-to-fragment.ts
Normal file
2
src/helper/title-to-fragment.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export const titleToFragment = (title: string): string =>
|
||||
encodeURIComponent(title.toLocaleLowerCase().replace(/\W+/g, '-'));
|
||||
Loading…
Add table
Add a link
Reference in a new issue