Skip to content

Enhance each stdnum type with an example property #108

@ChrisWooldridge

Description

@ChrisWooldridge

It would be useful if each number type had an additional property 'example' that gives a compact form of the number. For example BR.cpf would have the property "39053344705" and AU.tfn would have '123456782' The example property for each type should validate (the data is already in each test case).
My use case is to generate a UI prompt. My AU.tfn prompt might be:
"Enter your TFN (e.g., 123 456 782)
An alternative use would be to generate an input mask. The BR.cpf example, above, would be formatted 390.533.447-05 which could then be used to create a mask:
####.###.###-##
(The creation of the mask is an exercise left to the user.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions