Simplify and fix cards

This commit is contained in:
Andras Schmelczer 2022-09-21 13:30:54 +02:00
parent f9540abdef
commit fcf7f64acd
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
3 changed files with 19 additions and 20 deletions

View file

@ -0,0 +1,2 @@
export const titleToFragment = (title: string): string =>
encodeURIComponent(title.toLocaleLowerCase().replace(/\W+/g, '-'));