We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82ab595 commit e4ab69dCopy full SHA for e4ab69d
1 file changed
runbot/static/src/js/fields/fields.js
@@ -16,7 +16,7 @@ import { BooleanToggleField } from "@web/views/fields/boolean_toggle/boolean_tog
16
// https://stackoverflow.com/questions/4810841/pretty-print-json-using-javascript
17
function colorizeJson(json) {
18
json = json.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
19
- return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
+ return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g, function (match) {
20
let cls = "";
21
if (/^"/.test(match)) {
22
if (/:$/.test(match)) {
0 commit comments