Skip to content

Commit

Permalink
Update Src/CSharpier.Cli/Options/CaseInsensitiveEnumConverter.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Lasath Fernando <devel@lasath.org>
  • Loading branch information
belav and shocklateboy92 authored Sep 17, 2023
1 parent 927f949 commit 450fdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/CSharpier.Cli/Options/CaseInsensitiveEnumConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ JsonSerializerOptions options
}

var enumText = reader.GetString();
if (Enum.TryParse(enumText, true, out TEnum result))
if (Enum.TryParse(enumText, ignoreCase: true, out TEnum result))
{
return result;
}
Expand Down

0 comments on commit 450fdc9

Please sign in to comment.