Commit b315b1da authored by con's avatar con
Browse files

Fixes: - 'Whole words only' search in files bug

Task:     - 246854
RevBy:    - hjk
parent 9193e477
...@@ -108,9 +108,10 @@ void runFileSearch(QFutureInterface<FileSearchResult> &future, ...@@ -108,9 +108,10 @@ void runFileSearch(QFutureInterface<FileSearchResult> &future,
const char *beforeRegion = regionPtr - 1; const char *beforeRegion = regionPtr - 1;
bool equal = true; bool equal = true;
if (wholeWord && if (wholeWord &&
( ((*beforeRegion >= '0' && *beforeRegion <= '9') || *beforeRegion >= 'A') ( isalnum(*beforeRegion)
|| ((*afterRegion >= '0' && *afterRegion <= '9') || *afterRegion >= 'A'))) || (*beforeRegion == '_')
{ || isalnum(*afterRegion)
|| (*afterRegion == '_'))) {
equal = false; equal = false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment