Comparing version
@@ -150,3 +150,3 @@ "use strict"; | ||
function encodeNumber(value) { | ||
var s = "", parts, sig, exp; | ||
var s = "", parts, sig, exp = 0; | ||
s += (value < 0 ? "-" : "+"); | ||
@@ -158,3 +158,3 @@ | ||
} | ||
parts = parts.split(/[eE]/g); | ||
@@ -172,3 +172,3 @@ if(parts[1]) { exp = parseInt(parts[1]); } | ||
}); | ||
s += (encodeInteger(parseInt(sig)) || "0"); | ||
@@ -175,0 +175,0 @@ |
{ | ||
"name": "juri", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Encode JSON into compact, readable URL-safe strings", | ||
@@ -5,0 +5,0 @@ "main": "juri.js", |
@@ -11,3 +11,3 @@ var dict = [ "red", "yellow", "orange", "blue", "green", "white", | ||
leader: { name: "习 近平-习", title: "President", term: 137 }, | ||
population: 1.37E9 | ||
population: 1434440076830 | ||
}, | ||
@@ -14,0 +14,0 @@ in: { |
13848
0.11%