Skip to content

Commit

Permalink
Use invariant culture
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Jul 31, 2023
1 parent 461c672 commit 97a153d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions YoutubeExplode/Utils/Extensions/BinaryExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text;
using System.Globalization;
using System.Text;

namespace YoutubeExplode.Utils.Extensions;

Expand All @@ -11,7 +12,7 @@ public static string ToHex(this byte[] data, bool isUpperCase = true)
foreach (var b in data)
{
buffer.Append(
b.ToString(isUpperCase ? "X2" : "x2")
b.ToString(isUpperCase ? "X2" : "x2", CultureInfo.InvariantCulture)
);
}

Expand Down

0 comments on commit 97a153d

Please sign in to comment.