|
@@ -226,9 +226,13 @@ function calcSum(dataList) {
|
|
|
* @param {String} text json格式字符串
|
|
|
*/
|
|
|
function jsonBigNumberToString(text) {
|
|
|
- return text.replace(/:[0-9]{16,19}/g, function(match) {
|
|
|
- return match[0] + '"' + match.slice(1) + '"';
|
|
|
- });
|
|
|
+ return text
|
|
|
+ .replace(/\\":[0-9]{16,19}/g, function(match) {
|
|
|
+ return match.slice(0, 3) + '\\"' + match.slice(3) + '\\"';
|
|
|
+ })
|
|
|
+ .replace(/:[0-9]{16,19}/g, function(match) {
|
|
|
+ return match[0] + '"' + match.slice(1) + '"';
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
export {
|