mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
Fix JSX unicode handling, slightly improve perf
This commit is contained in:
@@ -110,6 +110,10 @@ pub const ZigString = extern struct {
|
||||
return this.ptr[0..std.math.min(this.len, 4096)];
|
||||
}
|
||||
|
||||
pub inline fn full(this: *const ZigString) []const u8 {
|
||||
return this.ptr[0..this.len];
|
||||
}
|
||||
|
||||
pub fn trimmedSlice(this: *const ZigString) []const u8 {
|
||||
return std.mem.trim(u8, this.ptr[0..std.math.min(this.len, 4096)], " \r\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user