Skip to content

Commit

Permalink
fix date comment
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Jan 17, 2024
1 parent 4e9f199 commit ed9fa1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/CardUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ function getYearFromExpirationDateString(expirationDateString: string) {
}

/**
* @returns string with a month in MM/YY format
* @returns string with a month in MM/YYYY format
*/
function formatCardExpiration(expirationDateString: string) {
// already matches MM/YY format
// already matches MM/YYYY format
const dateFormat = /^\d{2}\/\d{4}$/;
if (dateFormat.test(expirationDateString)) {
return expirationDateString;
Expand Down

0 comments on commit ed9fa1e

Please sign in to comment.