Skip to content

Valid Ssn number returned as invalid (for Belgium) #10

@Kamiseikyo

Description

@Kamiseikyo

Hi,

For several cases, SSN number in Belgium failed to validate correctly. Indeed, in BelgiumValidation class, line 50 :
bool isValid = ModFunction(nrToCheck).ToString() == checkDigit;
At that time, if checkDigit has a number below 10, it fails. It seems that int type doesn't keep the 0 in the beginning of a number.

For exemple :
checkDigit returns '09' and ModFunction returns '9'.

You can try with this SSN : 96091736909

Thanks for your time !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions