string-mask icon indicating copy to clipboard operation
string-mask copied to clipboard

Provide option to progressively show mask characters

Open anthonator opened this issue 10 years ago • 1 comments

I'd like to be able to not display characters that are part of the pattern but the input has not reached yet.

For instance,

I'd like to be able to use this pattern:

(999) 999-9999

with the input:

555555

and get the output:

(555) 555

Currently I'd get the following output:

(555) 555-

If I were to pass in an empty string I'd get:

() -

anthonator avatar Oct 24 '15 22:10 anthonator

can you send a failing test for this?

sibelius avatar Aug 07 '18 20:08 sibelius