diff --git a/src/utils.ts b/src/utils.ts index bd49194..223c530 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -32,14 +32,14 @@ export function getMonth(date: Date): string { } export function getDaySuffix(date: Date): string { - let suffix = 'th'; + let suffix = "th"; if (date.getDate() % 10 === 1 && date.getDate() !== 11) { - suffix = 'st'; + suffix = "st"; } else if (date.getDate() % 10 === 2 && date.getDate() !== 12) { - suffix = 'nd'; + suffix = "nd"; } else if (date.getDate() % 10 === 3 && date.getDate() !== 13) { - suffix = 'rd'; + suffix = "rd"; } return suffix; -} \ No newline at end of file +}