From 87ad248b3aa8b641385ff901d81eceda154a2319 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 8 Dec 2022 19:27:30 -0600 Subject: [PATCH] More encoding preamble stripping fixes --- src/Util.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util.cs b/src/Util.cs index e992a03..e78618e 100644 --- a/src/Util.cs +++ b/src/Util.cs @@ -27,7 +27,7 @@ internal static class Util { if (line.StartsWith(encoding.GetString(encoding.GetPreamble()), StringComparison.Ordinal)) { - line = line[encoding.GetPreamble().Length..]; + line = line.Replace(encoding.GetString(encoding.GetPreamble()), "", StringComparison.Ordinal); } } }