Skip to content

Commit

Permalink
fix color seq on live log
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 authored Sep 7, 2020
1 parent 2e9ffd8 commit 9b53c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/js/pages/JobDetails.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ Class.subclass(Page.Base, "Page.JobDetails", {

$cont.append(
'<pre class="log_chunk">' +
lines.map(function (line) { return line.replace(/</g, '&lt;'); }).join("\n").trim() +
lines.map(line => line.replace(/</g, '&lt;')).join("\n").replace(/\x1B\[[0-?]*[ -/]*[@-~]/g, "").trim() +
'</pre>'
);

Expand Down

0 comments on commit 9b53c7b

Please sign in to comment.