Skip to content

Commit

Permalink
Merge pull request apolloconfig#1052 from nobodyiam/fix-number-display
Browse files Browse the repository at this point in the history
fix number display, such as 123456789789798789
  • Loading branch information
nobodyiam authored Apr 11, 2018
2 parents fba9811 + 2c6f1d6 commit da4775b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ function showTextModalDirective() {

function isJsonText(text) {
try {
JSON.parse(text);
return typeof JSON.parse(text) === "object";
} catch (e) {
return false;
}
return true;
}
}
}
Expand Down

0 comments on commit da4775b

Please sign in to comment.