Skip to content

Commit

Permalink
Replace octal escape characters with their replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon authored Jun 24, 2024
1 parent b946034 commit 0ccd95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ha-ansi-to-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class HaAnsiToHtml extends LitElement {

private _parseTextToColoredPre(text) {
const pre = document.createElement("pre");
const re = /\033(?:\[(.*?)[@-~]|\].*?(?:\007|\033\\))/g;
const re = /\x1b(?:\[(.*?)[@-~]|\].*?(?:\x07|\x1b\\))/g;
let i = 0;

const state: State = {
Expand Down

0 comments on commit 0ccd95b

Please sign in to comment.