Skip to content

Commit da4255f

Browse files
committed
Match enum type name case insensitively
1 parent a1eed29 commit da4255f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.VisitDecl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private void VisitEnumConstantDecl(EnumConstantDecl enumConstantDecl)
298298
var strippedName = escapedName;
299299
if (Config.StripEnumMemberTypeName)
300300
{
301-
Regex stripParentNameRegex = new($"^{Regex.Escape(parentName)}_*");
301+
Regex stripParentNameRegex = new($"^{Regex.Escape(parentName)}_*", RegexOptions.IgnoreCase);
302302
strippedName = stripParentNameRegex.Replace(escapedName, string.Empty);
303303
}
304304

0 commit comments

Comments
 (0)