diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 6466040..978662f 100755 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -319,7 +319,7 @@ prettifiedJsonString = prettifiedJsonString.replace(/(\{|\[)\n/g, function(match, sectionOpenCharacter) { return getJsonCollapseHtml(sectionOpenCharacter) + '\n'; }); - return prettifiedJsonString.replace(/([^\[][\}\]])(,)?\n/g, '$1$2\n'); + return prettifiedJsonString.replace(/([^\[][\}\]],?)\n/g, '$1\n'); }; var prettifyResponse = function(text) {