Skip to content

Commit aefc931

Browse files
committed
Of all things
1 parent e7fe342 commit aefc931

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SabreTools.IO/Extensions/ByteArrayExtensions.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ public static HashSet<string> ReadStringsWithEncoding(this byte[]? bytes, int ch
142142
strings.Add(str);
143143

144144
// Clear the builder and continue
145+
#if NET20 || NET35
146+
sb = new();
147+
#else
145148
sb.Clear();
149+
#endif
146150
continue;
147151
}
148152

0 commit comments

Comments
 (0)