MikAoJk / norwegian-social-security-number-validator

Simple validator for validating a norwegian social security number (FNR or DNR)
MIT License
1 stars 1 forks source link

Function doesn't accept nullable personNumber #2

Closed ChameleonTartu closed 2 years ago

ChameleonTartu commented 2 years ago

It would be great if this function would accept personNumber as a String?

fun validateSocialSecurityAndDNumber(personNumber: String): Boolean =
    validateSocialSecurityNumberMod11(personNumber) && validatePersonAndPersonDNumberRange(personNumber)

Can you possibly add it? If you need any help with this, I would be happy to assist (not sure about code standards and practices you are following).

MikAoJk commented 2 years ago

yes, i will add it now

MikAoJk commented 2 years ago

Feature added in version 1.0.3