mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
Remove ignore min branch (#9061)
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -370,7 +370,7 @@ pub const String = extern struct {
|
||||
|
||||
pub fn createUTF16(bytes: []const u16) String {
|
||||
if (bytes.len == 0) return String.empty;
|
||||
if (bun.strings.firstNonASCII16IgnoreMin([]const u16, bytes) == null) {
|
||||
if (bun.strings.firstNonASCII16([]const u16, bytes) == null) {
|
||||
return BunString__fromUTF16ToLatin1(bytes.ptr, bytes.len);
|
||||
}
|
||||
return BunString__fromUTF16(bytes.ptr, bytes.len);
|
||||
|
||||
Reference in New Issue
Block a user