Polish Identification numbers are not considering length of the value

Description

NIP/PESEL/REGON constraints do not consider the length of the validated value. Hence incorrect values can pass the validation. Examples of incorrect numbers that would pass current validation:

NIP

  • 123-456-78-14113-312-310 (long)

  • 123-45-62 (short)

REGON

  • 1234567845 - 10 digits (long)

  • 12345673 – 8 digits (short)

PESEL

  • 920419795 (short)

  • 92041903790123 (long)

Environment

None

Status

Assignee

Marko Bekhta

Reporter

Marko Bekhta

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

Backport?

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Minor
Configure