Skip to content

Commit 1c8c60b

Browse files
committed
chore: update package version to 0.1.17
1 parent 074fc5f commit 1c8c60b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.1.16",
3+
"version": "0.1.17",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/CICDHistory/LogsRenderer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ export const LogsRenderer = ({
193193
// eslint-disable-next-line no-param-reassign
194194
log = log.replace(/\[[.]*m/, (m) => `\x1B[${m}m`)
195195

196+
// This piece of code, would highlight the search key in the logs
197+
// We will remove color through [0m and add background color of y6, till searchKey is present and then revert back to original color
198+
// While reverting if index is 0, would not add any escape code since it is the start of the log
196199
if (targetSearchKey && areStagesAvailable) {
197200
const logParts = log.split(ANSI_UP_REGEX)
198201
const availableEscapeCodes = log.match(ANSI_UP_REGEX)

0 commit comments

Comments
 (0)