From 0e849937d50b2eeaa287cf2a77064543d9d0d081 Mon Sep 17 00:00:00 2001 From: ckitsanelis Date: Fri, 19 Jan 2024 21:40:03 +0100 Subject: [PATCH] Fix regex search bug --- src/viewer/hooks/useLogSearchManager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/viewer/hooks/useLogSearchManager.ts b/src/viewer/hooks/useLogSearchManager.ts index bf0b958..d770536 100644 --- a/src/viewer/hooks/useLogSearchManager.ts +++ b/src/viewer/hooks/useLogSearchManager.ts @@ -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); } }