We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23291c1 commit 9d5d270Copy full SHA for 9d5d270
src/bun.js/test/pretty_format.zig
@@ -818,7 +818,7 @@ pub const JestPrettyFormat = struct {
818
.{key},
819
);
820
} else if (key.is16Bit()) {
821
- var utf16Slice = key.utf16SliceAligned();
+ const utf16Slice = key.utf16SliceAligned();
822
823
this.addForNewLine(utf16Slice.len + 2);
824
@@ -827,15 +827,7 @@ pub const JestPrettyFormat = struct {
827
}
828
829
writer.writeAll("\"");
830
-
831
- while (strings.indexOfAny16(utf16Slice, "\"")) |j| {
832
- writer.write16Bit(utf16Slice[0..j]);
833
- writer.writeAll("\"");
834
- utf16Slice = utf16Slice[j + 1 ..];
835
- }
836
837
writer.write16Bit(utf16Slice);
838
839
writer.print(
840
comptime Output.prettyFmt("\"<r><d>:<r> ", enable_ansi_colors),
841
.{},
0 commit comments