Skip to content

Commit

Permalink
new algorithm fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yatima1460 committed Jun 13, 2019
1 parent 53039f4 commit e55f8a6
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions Source/Backend/Crawler.d
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}



Expand Down

0 comments on commit e55f8a6

Please sign in to comment.