mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
feat: More robust and faster shell escaping (#8904)
* wip * Proper escaping algorithm * Don't use `$` for js obj/string referencs * [autofix.ci] apply automated fixes * Changes * Changes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
@@ -1884,7 +1884,7 @@ pub fn convertUTF16ToUTF8Append(list: *std.ArrayList(u8), utf16: []const u16) !v
|
||||
return;
|
||||
}
|
||||
|
||||
list.items.len = result.count;
|
||||
list.items.len += result.count;
|
||||
}
|
||||
|
||||
pub fn toUTF8AllocWithType(allocator: std.mem.Allocator, comptime Type: type, utf16: Type) ![]u8 {
|
||||
|
||||
Reference in New Issue
Block a user