fix: maximum time value reference

This commit is contained in:
Mariusz Nowak
2019-04-04 15:55:58 +02:00
parent dfdba1f072
commit 37727ae7d7
+1 -1
View File
@@ -4,6 +4,6 @@ module.exports = function (value) {
try { value = Number(value); }
catch (e) { return false; }
if (isNaN(value)) return false;
if (Math.abs(value) > 8.64e16) return false;
if (Math.abs(value) > 8.64e15) return false;
return true;
};