Fix mingw patch paths

This commit is contained in:
crazywhalecc
2026-07-06 19:10:10 +08:00
parent ab37b34fb5
commit fa040bc346
2 changed files with 6 additions and 4 deletions

View File

@@ -174,7 +174,7 @@ class FileSystem
public static function convertWinPathToMinGW(string $path): string
{
if (preg_match('/^[A-Za-z]:/', $path)) {
$path = '/' . strtolower($path[0]) . '/' . str_replace('\\', '/', substr($path, 2));
$path = '/' . strtolower($path[0]) . '/' . str_replace('\\', '/', ltrim(substr($path, 2), '\/'));
}
return $path;
}