diff --git a/commands/commit-count.js b/commands/commit-count.js index c4606e0..25587ba 100644 --- a/commands/commit-count.js +++ b/commands/commit-count.js @@ -204,7 +204,7 @@ module.exports = { if (validDays.includes(formattedDay)) { dayMap.set(formattedDay, true); } - else if (formattedDay != (monthName + ' ' + (new Date()).getDate().toString())) { + else if (formattedDay != (monthName + ' ' + (new Date()).getDate().toString().padStart(2, 0))) { invalidString += `${formattedDay}\n`; dayMap.set(formattedDay, false); }