Skip to content

InputMask: How to Escape Character *,a,9 #8184

@vixson

Description

@vixson

I want to be able to escape the characters *, a & 9 used in the mask.
Example 1:
Usage for a fill-in-the-blank statement

      <InputMask v-model="statement" mask="I am a **** person" />

Expectation: I am a GOOD person
But the output was "I _m _ ____ person"
Due to the presence of the character "a" in the mask. I need to escape the "a" character in "am a"

Example 2:
Usage country phone code

    <InputMask v-model="phone"  mask="+91 ****-******" />

Expectation: +91 1234-567890
But the output was "+_1 ___ - ____ "
Because the character "9" in the mask", I need to escape the "9" character in "+91"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions