From a3cd7b2fdf26833fbfc34c6bf65728a4528ad9fb Mon Sep 17 00:00:00 2001 From: Fabricio Date: Wed, 25 Jul 2018 18:49:57 -0300 Subject: [PATCH] change regex because of firefox --- dashboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard.go b/dashboard.go index 93909e4..c9a91bd 100644 --- a/dashboard.go +++ b/dashboard.go @@ -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];