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,
const char *beforeRegion = regionPtr - 1;
bool equal = true;
if (wholeWord &&
( ((*beforeRegion >= '0' && *beforeRegion <= '9') || *beforeRegion >= 'A')
|| ((*afterRegion >= '0' && *afterRegion <= '9') || *afterRegion >= 'A')))
{
( isalnum(*beforeRegion)
|| (*beforeRegion == '_')
|| isalnum(*afterRegion)
|| (*afterRegion == '_'))) {
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