RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.36k stars 2.18k forks source link

it is not possible to use escaped characters as a separator in dates #2791

Open skrasnoyarov opened 1 month ago

skrasnoyarov commented 1 month ago

@RobinHerbots Hello! Can you tell me how can I set the escaped characters that are used to display dates as the date separator? For example: dd\dmm.yyyy.

I use \d as a separator and it doesn't work on version 5.0.8. codesandbox The same is true for \m, \y.

Is this a bug or is it done on purpose and there is no longer an opportunity to use it like this?

On version 3.3.0, this feature was: codesandbox

Thank`s for your attention!

Techn1c4l commented 1 month ago

Confirming that, even the example from the documentation doesn't work: jQuery('#field').inputmask({ 'alias': 'datetime', 'inputFormat': 'm \\months', escapeChar: '\\' });