Fix expire date validation so it allows cards expiring in the current ye... #19

Merged
merged 1 commit into from Apr 8, 2014

Conversation

Projects
None yet
2 participants
Contributor

VictorGarcia commented Oct 10, 2013

...ar.

The current implementation has a bug when validating the expire date for cards expiring later in the current year. Added a condition to pass validation when year == currentYear and month >= currentMonth.

Fix expire date validation so it allows cards expiring in the current…
… year.

The current implementation has a bug when validating the expire date for cards expiring later in the current year. Added a condition to pass validation when year == currentYear and month >= currentMonth.
Owner

tonydspaniard commented Apr 8, 2014

Thanks

tonydspaniard added a commit that referenced this pull request Apr 8, 2014

Merge pull request #19 from VictorGarcia/patch-1
Fix expire date validation so it allows cards expiring in the current ye...

@tonydspaniard tonydspaniard merged commit 02f7097 into tonydspaniard:master Apr 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment