mirror of
https://github.com/parnic/advent-of-code-2022.git
synced 2025-06-16 13:40:13 -05:00
More encoding preamble stripping fixes
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user