Skip to content

Commit eaeeb3f

Browse files
committed
feat: make search case-insensitive
1 parent 65d12d8 commit eaeeb3f

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)