Added SEO to Contributors, Contributor, User Guide (+ each of it's pages), Changelog, OSS friends: titles, descriptions Co-authored-by: Ady Beraud <a.beraud96@gmail.com>
7 lines
179 B
TypeScript
7 lines
179 B
TypeScript
export function formatSlug(slug: string): string {
|
|
return slug
|
|
.split('-')
|
|
.map((word: string) => word?.charAt(0)?.toUpperCase?.() + word?.slice?.(1))
|
|
.join(' ');
|
|
}
|