Skip to content

Commit

Permalink
Accept みそか as 30th for dates. Closes #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
domfarolino committed May 3, 2024
1 parent ca3cb6a commit 3373b8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ function generateNewPrompt() {
return `${monthString} ${ordinalSuffix(day)}`;
},
correctAnswers() {
return [`${kMonthTranslations[month]}${kDayTranslations[day]}`];
const returnAnswers = [`${kMonthTranslations[month]}${kDayTranslations[day]}`];
if (day === 30) {
returnAnswers.push(`${kMonthTranslations[month]}みそか`);
}
return returnAnswers;
}
};
break;
Expand Down

0 comments on commit 3373b8d

Please sign in to comment.