Browse Source

Fix #2522: support backticks in FQ name when searching for type

pull/2529/head
Ralf 4 years ago committed by GitHub
parent
commit
3fa61f0e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ILSpy/Search/AbstractSearchStrategy.cs

3
ILSpy/Search/AbstractSearchStrategy.cs

@ -25,15 +25,14 @@ namespace ICSharpCode.ILSpy.Search @@ -25,15 +25,14 @@ namespace ICSharpCode.ILSpy.Search
if (terms.Length == 1 && terms[0].Length > 2)
{
string search = terms[0];
omitGenerics = !(search.Contains("<") || search.Contains("`"));
if (TryParseRegex(search, out regex))
{
fullNameSearch = search.Contains("\\.");
omitGenerics = !search.Contains("<");
}
else
{
fullNameSearch = search.Contains(".");
omitGenerics = !search.Contains("<");
}
}
searchTerm = terms;

Loading…
Cancel
Save