We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4af886 commit 55e8e4aCopy full SHA for 55e8e4a
1 file changed
scripts/js/gravity.js
@@ -92,7 +92,7 @@ function parseLines(outputElement, text) {
92
if (line[0] === "\r") {
93
// This line starts with the "OVER" sequence. Replace them with "\n" before print
94
// we also escape HTML to prevent XSS attacks
95
- line = utils.escapeHtml(line.replaceAll("\r[K", "\n").replaceAll("\r", "\n"));
+ line = utils.escapeHtml(line.replaceAll("\r\u001B[K", "\n").replaceAll("\r", "\n"));
96
97
// Last line from the textarea will be overwritten, so we remove it
98
const lastLineIndex = outputElement.innerHTML.lastIndexOf("\n");
0 commit comments