Unverified Commit da4775b1 by Jason Song Committed by GitHub

Merge pull request #1052 from nobodyiam/fix-number-display

fix number display, such as 123456789789798789
parents fba9811f 2c6f1d6e
...@@ -21,11 +21,10 @@ function showTextModalDirective() { ...@@ -21,11 +21,10 @@ function showTextModalDirective() {
function isJsonText(text) { function isJsonText(text) {
try { try {
JSON.parse(text); return typeof JSON.parse(text) === "object";
} catch (e) { } catch (e) {
return false; return false;
} }
return true;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment