anghelvalentin / CountryValidator

C# Validations for Social Security Numbers, VAT Codes and tax identification numbers
https://randommer.io/SocialNumber/VatValidator
36 stars 20 forks source link

avoid throwing number parse exception #5

Closed heikomilke closed 3 years ago

heikomilke commented 3 years ago

if test string is not a number validator is currently throwing a parse exception when ValidationResult.Invalid should be used instead

be aware that I did not check the whole solution for the same issue

this fix is for NL ValidateIndividualTaxCode only