julien-c / iso3166

ISO 3166-1 alpha-2 mapping
65 stars 9 forks source link

case-sensitive isValid #9

Open ghost opened 7 years ago

ghost commented 7 years ago

We are using this library just for validation but a lower country code like "de" should not be valid.

So I think it makes sense to add a second argument to allow case-sensitive validation isValid($code, $caseSensitive = false).

Thoughts?