diff --git a/frontend/src/lib/utils.ts b/frontend/src/lib/utils.ts index 7cb62ce..e2a5307 100644 --- a/frontend/src/lib/utils.ts +++ b/frontend/src/lib/utils.ts @@ -9,6 +9,7 @@ export function cn(...inputs: ClassValue[]) { export function sanitizePath(input: string, os: string): string { + let sanitized = input.trim(); // it will trim whitespace if (os === "Windows") { return input.replace(/[<>:"/\\|?*]/g, "_"); } @@ -56,4 +57,4 @@ export function openExternal(url: string) { window.open(url, "_blank", "noopener,noreferrer"); } } -} \ No newline at end of file +}