diff --git a/src/StructuredLogViewer/Controls/BuildControl.xaml.cs b/src/StructuredLogViewer/Controls/BuildControl.xaml.cs index 3d84dbca..956df1d5 100644 --- a/src/StructuredLogViewer/Controls/BuildControl.xaml.cs +++ b/src/StructuredLogViewer/Controls/BuildControl.xaml.cs @@ -1030,7 +1030,7 @@ private object FindInFiles(string searchText, int maxResults, CancellationToken { var results = new List<(string, IEnumerable<(int, string)>)>(); - NodeQueryMatcher notQueryMatcher = new NodeQueryMatcher(searchText); + NodeQueryMatcher nodeQueryMatcher = new NodeQueryMatcher(searchText); bool isSecretsSearch = !string.IsNullOrEmpty(searchText) && searchText.StartsWith("$secret"); foreach (var file in archiveFile.Files) @@ -1042,7 +1042,7 @@ private object FindInFiles(string searchText, int maxResults, CancellationToken if (isSecretsSearch) { - var searchResults = secretsSearch.SearchSecrets(file.Value.Text, notQueryMatcher.NotMatchers, maxResults); + var searchResults = secretsSearch.SearchSecrets(file.Value.Text, nodeQueryMatcher.NotMatchers, maxResults); if (searchResults.Count > 0) { results.Add((file.Key, searchResults.Select(sr => (sr.Line - 1, sr.Secret))));