Skip to content

Commit

Permalink
Fix regex search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ckitsanelis committed Jan 19, 2024
1 parent d1555f4 commit 0e84993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/viewer/hooks/useLogSearchManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ export const returnSearchIndices = (
if (columnIndex === -1) {
for (let i = 0; i < rows.length; i++) {
loglineText = rows[i].join(" ");
if (useRegularExpressionSearch(flags, searchText, loglineText) === false)
if (useRegularExpressionSearch(flags, searchText, loglineText))
indices.push(i);
}
} else {
for (let i = 0; i < rows.length; i++) {
loglineText = rows[i][columnIndex]; //Lowercase?
if (useRegularExpressionSearch(flags, searchText, loglineText) === false)
loglineText = rows[i][columnIndex];
if (useRegularExpressionSearch(flags, searchText, loglineText))
indices.push(i);
}
}
Expand Down

0 comments on commit 0e84993

Please sign in to comment.