add util to encode alias to path
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user