Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support both country code 9908 and 0192 in Organisasjonsnummer #142

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

hermanwh
Copy link
Contributor

@hermanwh hermanwh commented Jan 5, 2024

No description provided.

@hermanwh hermanwh requested a review from runeflobakk January 5, 2024 15:09
…ults when using country code

The previous implementation, which I somewhat regrettably released as version 4.0.2,
is not ideal when comparing an organisation number without country code to an
organisation number with country code. The changes made here establish that
in such cases, only the organisation numbers should be compared, disregarding
country codes.
…mmer

The changes introduced in the two previous commits change the behaviour
of the Organisasjonsnummer equals method. Previously, this method could
be used to compare only the organisation number string itself between two
instances of Organisasjonsnummer. The method introduced in this commit,
erSammeOrganisasjonsnummerUavhengigAvLandkode, is intended to replace
the described use of the equals method for uses where ignoring country
code is desirable.
Copy link
Member

@runeflobakk runeflobakk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏅

@hermanwh hermanwh merged commit 97dbe88 into main Jan 10, 2024
4 checks passed
@hermanwh hermanwh deleted the new-country-code branch January 10, 2024 18:05
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