aboutsummaryrefslogtreecommitdiff
path: root/lib/utils.js
diff options
context:
space:
mode:
authorAdrian Bibby Walther <adrianbibbywalther@gmail.com>2017-12-17 01:22:32 +0100
committerAdrian Bibby Walther <adrianbibbywalther@gmail.com>2017-12-17 01:22:32 +0100
commite33e42e0644f4388ee2e2f1edd4489d448093a20 (patch)
tree0067c8adb723c8b3034ca860739339a2f6c1983d /lib/utils.js
parent95dbed186b707e3b981a62430487440dba83aac5 (diff)
downloadcompiler-explorer-e33e42e0644f4388ee2e2f1edd4489d448093a20.tar.gz
compiler-explorer-e33e42e0644f4388ee2e2f1edd4489d448093a20.zip
Now supports colorized compiler outputwith -fdiagnostics-color=always
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js
index 8e4da75ee..01e2d563a 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -61,7 +61,7 @@ function parseOutput(lines, inputFilename) {
if (inputFilename) line = line.split(inputFilename).join('<source>');
if (line !== "" && line.indexOf("fixme:") !== 0) {
const lineObj = {text: line};
- const match = line.match(re);
+ const match = line.replace(/\x1b\[[\d;]*[mK]/g,'').match(re);
if (match) {
lineObj.tag = {
line: parseInt(match[1]),