Skip to content

Commit 796d9a3

Browse files
authored
Merge pull request #337 from devtron-labs/fix/improve-log-search
feat: make search case-insensitive
2 parents 65d12d8 + eaeeb3f commit 796d9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Components/CICDHistory/LogsRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const LogsRenderer = ({
220220
// Search is working on assumption that color codes are not nested for words.
221221
const logParts = log.split(ANSI_UP_REGEX)
222222
const availableEscapeCodes = log.match(ANSI_UP_REGEX) || []
223-
const searchRegex = new RegExp(`(${escapeRegExp(targetSearchKey)})`, 'g')
223+
const searchRegex = new RegExp(`(${escapeRegExp(targetSearchKey)})`, 'ig')
224224
const parts = logParts.reduce((acc, part, index) => {
225225
try {
226226
// Question: Can we directly set it as true inside the replace function?

0 commit comments

Comments
 (0)