Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
davemooreuws committed Jan 10, 2025
1 parent 4704466 commit ebdf85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dashboard/frontend/src/components/logs/ansi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ansiToReact = (msg: string): React.ReactNode[] => {
}

const parts: React.ReactNode[] = []
const regex = /\u001b\[([0-9]+)m/g
const regex = new RegExp(`${String.fromCharCode(27)}\\[([0-9]+)m`, 'g')
let lastIndex = 0
let currentClass = ''

Expand Down

0 comments on commit ebdf85e

Please sign in to comment.