Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGoulet73 committed Sep 14, 2024
1 parent 1b2cbf0 commit ce2b16c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ internal static KnownColor ArgbStringToKnownColor(string argbString)
// Use NumberStyles.AllowHexSpecifier instead of NumberStyles.HexNumber because NumberStyles.HexNumber
// trims the whitespaces when we already trim it in the code above and we don't consider values
// with whitespaces between the "#" and the hex value to be valid values.
if (argbSpan.StartsWith('#') && uint.TryParse(argbSpan[1..], NumberStyles.HexNumber, CultureInfo.InvariantCulture, out uint uintValue))
if (argbSpan.StartsWith('#') && uint.TryParse(argbSpan[1..], NumberStyles.AllowHexSpecifier, CultureInfo.InvariantCulture, out uint uintValue))
{
KnownColor color = (KnownColor)uintValue;

Expand Down

0 comments on commit ce2b16c

Please sign in to comment.