Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Match enum type name case insensitively
  • Loading branch information
fredrikhr committed May 19, 2024
commit da4255fc77d3c079736837d411ba65a4284bbeb7
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private void VisitEnumConstantDecl(EnumConstantDecl enumConstantDecl)
var strippedName = escapedName;
if (Config.StripEnumMemberTypeName)
{
Regex stripParentNameRegex = new($"^{Regex.Escape(parentName)}_*");
Regex stripParentNameRegex = new($"^{Regex.Escape(parentName)}_*", RegexOptions.IgnoreCase);
strippedName = stripParentNameRegex.Replace(escapedName, string.Empty);
}

Expand Down