Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems validating the month #16

Closed
josuedor opened this issue Dec 19, 2018 · 0 comments
Closed

Problems validating the month #16

josuedor opened this issue Dec 19, 2018 · 0 comments

Comments

@josuedor
Copy link

$this->validate($request, [
            'credit_card_expiration_date' => ['required', new CardExpirationDate('Y-m')]
        ]);

When insert 2020/13, 2020/14 ..., until 2020/99 passes the validation.

  • This is incorrect because the year is only 12 months.
  • Validation fails only when there are three digits in the month.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant