Remove ignore min branch (#9061)

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2024-02-22 20:04:50 -08:00
committed by GitHub
parent 2e7d77b3b0
commit 7e906c1cae
3 changed files with 28 additions and 48 deletions

View File

@@ -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);