Files
moreminimore-vibe/shared/normalizePath.ts
Kunthawat Greethong 11986a0196 Add project files
2025-12-05 09:26:53 +07:00

11 lines
301 B
TypeScript

/**
* Normalize the path to use forward slashes instead of backslashes.
* This is important to prevent weird Git issues, particularly on Windows.
* @param path Source path.
* @returns Normalized path.
*/
export function normalizePath(path: string): string {
return path.replace(/\\/g, "/");
}