From 64a77203204f8a5c385fff6c1c208a463f26f65a Mon Sep 17 00:00:00 2001 From: ThioJoe <12518330+ThioJoe@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:57:14 -0700 Subject: [PATCH] Fix some results not being added Not sure why it was using .Match.Count in the first place, or why it worked, but a small number of results were being skipped even if they were there. --- Super_God_Mode.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Super_God_Mode.ps1 b/Super_God_Mode.ps1 index 060a8de..d19c493 100644 --- a/Super_God_Mode.ps1 +++ b/Super_God_Mode.ps1 @@ -2977,7 +2977,7 @@ function Search-HiddenLinks { foreach ($file in $files) { $searchedFiles += $file.FullName $fileResults = Get-ProtocolsInFile -protocolsList $URIsList -filePathToCheck $file.FullName -encodingMap $encodingMap - if ($fileResults -and $fileResults.Matches.Count -gt 0) { + if ($fileResults) { $resultsAppx += $fileResults } $processedFiles++ @@ -3208,7 +3208,7 @@ function Search-HiddenLinks { foreach ($file in $files) { $searchedFiles2 += $file.FullName $fileResults = Get-ProtocolsInFile -protocolsList $URIsList -filePathToCheck $file.FullName -encodingMap $encodingMap - if ($fileResults -and $fileResults.Matches.Count -gt 0) { + if ($fileResults) { $resultsSecondary += $fileResults } $processedFiles++