change regex because of firefox
This commit is contained in:
parent
ffbae9c2f6
commit
a3cd7b2fdf
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue