Skip to content

[Question] How do I initially fill in the mask having only symbols for blanks? #114

Description

@krypt-lx

It is not a bugreport, but I question I can't find the answer for:

  • I have a mask, lets use +1 ([000]) [000] [00] [00] for example
  • I have a value 1234567890, which represents blank characters of the mask (the same value returned in extractedValue by Mask.apply)

If I feed the value into the mask, it will return formatted value "+1 (234) 567 89 0", with complete flag set to false (the first digit was eaten by non-blanked symbol)

How do I properly fill in the mask? What about more complex cases (fixed character in the middle of the mask, for example)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions