From 84ac23a291e2d5202cc39b938c2a78f04f63c810 Mon Sep 17 00:00:00 2001 From: jspenguin2017 Date: Sat, 5 May 2018 22:53:09 -0600 Subject: [PATCH] update docs --- src/reporter/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/reporter/index.js b/src/reporter/index.js index 612093a38b..5c483f591a 100644 --- a/src/reporter/index.js +++ b/src/reporter/index.js @@ -109,8 +109,9 @@ $("#msg-specific-error button").on("click", () => { { const init = () => { let lastReport = localStorage.getItem(storageKeyLastReport); - // Maximum accuracy of integer is about 16 digits, this is good for - // 30 thousand years + // Maximum accuracy of integer is about 16 digits + // Cap at 15 digits to be safe, which is still more than enough to + // represent the next 30 thousand years if (/^\d{13,15}$/.test(lastReport)) { lastReport = parseInt(lastReport); }