File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -30762,7 +30762,9 @@ class SizeLimit {
3076230762 ];
3076330763 }
3076430764 parseResults(output) {
30765- const results = JSON.parse(output);
30765+ const begin = output.indexOf('{');
30766+ const end = output.lastIndexOf('}');
30767+ const results = JSON.parse(output.slice(begin, end + 1));
3076630768 return results.reduce((current, result) => {
3076730769 let time = {};
3076830770 if (result.loading !== undefined && result.running !== undefined) {
Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ class SizeLimit {
102102 }
103103
104104 parseResults ( output : string ) : { [ name : string ] : IResult } {
105- const results = JSON . parse ( output ) ;
105+ const begin = output . indexOf ( '{' ) ;
106+ const end = output . lastIndexOf ( '}' ) ;
107+ const results = JSON . parse ( output . slice ( begin , end + 1 ) ) ;
106108
107109 return results . reduce (
108110 ( current : { [ name : string ] : IResult } , result : any ) => {
You can’t perform that action at this time.
0 commit comments