Skip to content

fix: find states and regions whose codes aren't uppercase - #69

Open
georgeguimaraes wants to merge 1 commit into
commenthol:masterfrom
georgeguimaraes:fix/subdivision-code-case
Open

georgeguimaraes wants to merge 1 commit into
commenthol:masterfrom
georgeguimaraes:fix/subdivision-code-case

Conversation

@georgeguimaraes

Copy link
Copy Markdown

splitName uppercases state and region codes before the lookup, so codes like CK's Aitutaki or NZ's Buller never match and you silently get the parent's holidays. The country is still uppercased, state and region codes are matched against the data's keys ignoring case, so us-la keeps working.

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.

1 participant