mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
a
This commit is contained in:
@@ -2095,8 +2095,6 @@ pub fn dangerouslyConvertPathToPosixInPlace(comptime T: type, path: []T) void {
|
||||
|
||||
pub fn dangerouslyConvertPathToWindowsInPlace(comptime T: type, path: []T) void {
|
||||
var idx: usize = 0;
|
||||
if (T == u16)
|
||||
std.debug.print("ugh {}\n", .{bun.fmt.utf16(path)});
|
||||
while (std.mem.indexOfScalarPos(T, path, idx, std.fs.path.sep_posix)) |index| : (idx = index + 1) {
|
||||
path[index] = '\\';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user