Skip to content

Commit

Permalink
#78 platform/pallas#907 cerebro命令控制台json显示修复
Browse files Browse the repository at this point in the history
  • Loading branch information
gier.cai committed Jul 2, 2019
1 parent 520cfb2 commit 90382ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallas-plus-web/sense/src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function callES(server, url, method, data, successCallback, completeCallback, re
}
function bigIntJSONParse(origJSON) {
const stringedJSON = origJSON.replace(/:\s*([-+Ee0-9.]+)/g, ': "uniqueprefix$1"');
const stringedJSON = origJSON.replace(/"\s*:\s*([-+Ee0-9.]+)/g, '": "uniqueprefix$1"');
const o = JSON.parse(stringedJSON, (key, value) => {
if (typeof value !== 'string') return value;
if (!value.startsWith('uniqueprefix')) return value;
Expand Down

0 comments on commit 90382ad

Please sign in to comment.