Closed oschwald closed 5 months ago
Wouldn't accepting ca
as a country code be considered a bug? I haven't read any document about it, but I've always seen those codes in uppercase.
Yes, correct. It now accepts lowercase. Before 2.3, it did not accept it.
On Fri, Feb 2, 2024, 3:32 AM Henrique Moody @.***> wrote:
Wouldn't accepting ca as a country code be considered a bug? I haven't read any document about it, but I've always seen those codes in uppercase.
— Reply to this email directly, view it on GitHub https://github.com/Respect/Validation/issues/1446#issuecomment-1923622699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACECM3QWFTV24H675KYKHTYRTFGTAVCNFSM6AAAAABCVNEJCSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRTGYZDENRZHE . You are receiving this because you authored the thread.Message ID: @.***>
Thank you for reporting 🐼
I will fix this one as soon as possible!
The fix is available on version 2.3.2
Thank you for reporting 🐼
As of e2b6138b, the following code no longer throws an exception on a lower-cased country code:
In 2.2.4, a lower-cased country code would throw an exception with the error
Uncaught country must be a valid country
.