mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Use an enum for Ref instead of a buggy packed struct
Fixes a printing bug with `Symbol`
This commit is contained in:
@@ -12,6 +12,7 @@ pub inline fn containsChar(self: string, char: u8) bool {
|
||||
pub inline fn contains(self: string, str: string) bool {
|
||||
return std.mem.indexOf(u8, self, str) != null;
|
||||
}
|
||||
pub const includes = contains;
|
||||
|
||||
pub inline fn containsAny(in: anytype, target: string) bool {
|
||||
for (in) |str| if (contains(str, target)) return true;
|
||||
|
||||
Reference in New Issue
Block a user