mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-29 21:02:13 +01:00
4 lines
142 B
TypeScript
4 lines
142 B
TypeScript
export function getUrlSafeString(value: string): string {
|
|
return encodeURIComponent(value.toLowerCase().replace(/[^a-z0-9 _-]+/gi, "-"));
|
|
}
|