Skip to content

Commit

Permalink
Legg på kommentar på Fnr sin init-sjekk
Browse files Browse the repository at this point in the history
  • Loading branch information
hestad committed Oct 17, 2024
1 parent f092b8c commit 267152d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/main/no/nav/tiltakspenger/libs/common/Fnr.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data class Fnr private constructor(
override fun toString(): String = "***********"

private fun validate(fnr: String) {
// TODO post-mvp jah: På et tidspunkt vil vi måtte akseptere fødselsnumre som ikke er 11 siffer. Kanskje det er like greit å bare sjekke at den ikke er non-blank og trimme spaces på begge sider?
if (!fnr.matches(fnrPattern)) throw UgyldigFnrException(fnr)
}

Expand Down

0 comments on commit 267152d

Please sign in to comment.