diff --git a/scripts/js/gravity.js b/scripts/js/gravity.js index f116bb91..46a87329 100644 --- a/scripts/js/gravity.js +++ b/scripts/js/gravity.js @@ -89,6 +89,7 @@ function parseLines(ta, str) { let spanCount = 0; // Replace ANSI escape codes with HTML tags and count opening spans + /* eslint-disable prettier/prettier */ line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_BOLD line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_GRAY line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_RED @@ -97,6 +98,7 @@ function parseLines(ta, str) { line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_BLUE line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_PURPLE line = line.replaceAll("", () => { spanCount++; return ''; }); //COL_CYAN + /* eslint-enable prettier/prettier */ // Replace [0m with the appropriate number of closing spans line = line.replaceAll("", "".repeat(spanCount)); //COL_NC