GoncharukOrg / react-input

109 stars 9 forks source link

The last slot is not working as expected #31

Closed ifdouglas closed 2 months ago

ifdouglas commented 2 months ago

For example:

mask="__h __m"
replacement={{ _: /\d/ }}

Entering: 1234 Will show: 12h 34

In this case, the m will not show on the field. But if I change to this:

mask="__h __m_"
replacement={{ _: /\d/ }}

Entering: 1234 Will show: 12h 34

Entering: 12345 Will show: 12h 34m5

The letter m will just appear if we have a replacement slot after