add util to encode alias to path

This commit is contained in:
Mads Rasmussen
2024-05-24 18:38:38 +02:00
parent 1473e2f5ff
commit 404400d205

View File

@@ -1 +1,3 @@
export const encodeFilePath = (path: string) => encodeURIComponent(path).replace('.', '-');
export const encodeFilePath = (path: string) => encodeURIComponent(path).replaceAll('.', '-');
export const aliasToPath = (path: string) => encodeFilePath(path);