change regex because of firefox

This commit is contained in:
Fabricio 2018-07-25 18:49:57 -03:00
commit a3cd7b2fdf

View file

@ -198,7 +198,7 @@ const dashboardHTML = `
}
$scope.prettifyBody = key => {
let regex = /.*\n([\{\[].*[\}\]]).*/gs;
let regex = /\n([\{\[](.*\s+)*[\}\]])/;
let data = $scope[key];
let match = regex.exec(data);
let body = match[1];