Skip to content

Commit

Permalink
Merge pull request #363 from AvaloniaUI/fix-eventNames-filtering
Browse files Browse the repository at this point in the history
Fix events filtering in completion list
  • Loading branch information
maxkatz6 authored Jul 20, 2023
2 parents dfe37cc + 8bd8035 commit 185412c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public IEnumerable<string> FilterEventNames(string typeName, string? propName,
if (t == null)
return Array.Empty<string>();

return t.Events.Where(n => n.IsAttached == attached && n.Name.StartsWith(propName)).Select(n => n.Name);
return t.Events.Where(n => n.IsAttached == attached && n.Name.StartsWith(propName, StringComparison.OrdinalIgnoreCase)).Select(n => n.Name);
}

public MetadataProperty? LookupProperty(string? typeName, string? propName)
Expand Down

0 comments on commit 185412c

Please sign in to comment.