Skip to content

Commit

Permalink
Merge pull request thomasDOTwtf#4 from thomasDOTde/fix-Issue#176
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasDOTwtf authored Nov 1, 2017
2 parents e76063d + 8f31953 commit c7fbc0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/static/custom/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ json_library = {
return r + (pEnd || '');
},
prettyPrint: function(obj) {
obj = obj.replace(/u'/g, "\'").replace(/'/g, "\"").replace(/(False|None)/g, "\"$1\"");
obj = obj.replace(/"/g, "\\\"").replace(/u'/g, "\'").replace(/'/g, "\"").replace(/(False|None)/g, "\"$1\"");
var jsonData = JSON.parse(obj);
var jsonLine = /^( *)("[\w]+": )?("[^"]*"|[\w.+-]*)?([,[{])?$/mg;
return JSON.stringify(jsonData, null, 3)
.replace(/&/g, '&').replace(/\\"/g, '"')
.replace(/</g, '&lt;').replace(/>/g, '&gt;')
.replace(jsonLine, json_library.replacer);
}
};
};

0 comments on commit c7fbc0e

Please sign in to comment.