From e55f8a65d07e22732e957dd9d1e18cc654582c56 Mon Sep 17 00:00:00 2001 From: Federico Santamorena Date: Fri, 14 Jun 2019 01:40:11 +0200 Subject: [PATCH] new algorithm fix --- Source/Backend/Crawler.d | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/Source/Backend/Crawler.d b/Source/Backend/Crawler.d index b1669dc7..69c209e1 100644 --- a/Source/Backend/Crawler.d +++ b/Source/Backend/Crawler.d @@ -378,21 +378,17 @@ private: const string fileNameLower = toLower(baseName(currentFile.name)); foreach (token; searchTokens) { - - if (!canFind(fileNameLower, token)) - { - Logger.logTrace("Not matching search, skipped: "~fileNameLower); - continue fileloop; - } - else - { - Logger.logTrace("Matching search"~fileNameLower); + if (!canFind(fileNameLower, token)) + { + Logger.logTrace("Not matching search, skipped: "~fileNameLower); + continue fileloop; + } + else + { + Logger.logTrace("Matching search"~fileNameLower); + } } - - resultCallback(buildFileInfo(currentFile)); - - }