Skip to content

Add an ISO3166 special case for Kosovo#447

Open
sam-w wants to merge 2 commits intoasaskevich:masterfrom
LoungeBuddy:master
Open

Add an ISO3166 special case for Kosovo#447
sam-w wants to merge 2 commits intoasaskevich:masterfrom
LoungeBuddy:master

Conversation

@sam-w
Copy link
Copy Markdown

@sam-w sam-w commented Jun 29, 2021

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

Adds a special case for the IsISO3166Alpha2 and IsISO3166Alpha3 validators for Kosovo.

Kosovo declared independence in 2008, but we're still waiting for an official inclusion to the ISO3166 standard. In the meantime many official bodies have begun using the codes XK and XXK. An example of the prevalence of this unofficial usage is that that iOS lists XK as one of its locale codes.

Expected: IsISO3166Alpha2("XK") returns true
Actual: false


This change is Reviewable

@sergeyglazyrindev
Copy link
Copy Markdown

Hello guys!
I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back
Link to my repo: create issue there and we'll discuss it.

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

Successfully merging this pull request may close these issues.

2 participants