Skip to content

Commit 2f8be84

Browse files
committed
clear Error loading resource output before parse
1 parent 901c1c1 commit 2f8be84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ function htmlCov() {
175175
}
176176

177177
function cleanJSON(data) {
178+
data = data.replace(/^(}?)Error loading resource .+?$/gm, '$1');
178179
data = data.replace(/^[^{]*({)/g, '$1');
179180
if (event.outputJSON) {
180181
fs.writeFileSync(event.outputJSON, data);

0 commit comments

Comments
 (0)