jaswdr / faker

:rocket: Ultimate fake data generator for Go with zero dependencies
https://pkg.go.dev/github.com/jaswdr/faker
MIT License
566 stars 59 forks source link

Fix credit card expiration date #174

Closed antfroger closed 6 months ago

antfroger commented 6 months ago

Description

Fix credit card expiration date.

The generated expiration dates were in date/month format when they should be in month/year format. Also, the month generated was between 12 and 30 when it should have been between 1 and 12.

Are you trying to fix an existing issue?

This issue is not reported in github.

Go Version

$ go version
go version go1.22.2 darwin/amd64

Go Tests

$ go test
2024/04/24 17:23:36 Error while requesting https://loremflickr.com/300/200 : request failed
2024/04/24 17:23:36 Error while creating a temp file: temp file creation failed
2024/04/24 17:23:36 Error while requesting https://randomuser.me : request failed
2024/04/24 17:23:36 Error while creating a temp file: temp file creation failed
PASS
ok      github.com/jaswdr/faker/v2  1.668s
jaswdr commented 6 months ago

@antfroger thank you very much for the fix, I released it under v2.3.1