Replies: 1 comment 1 reply
-
|
I can confirm this issue. The // InputMask.vue — line ~370
this.defs = {
9: '[0-9]',
a: '[A-Za-z]',
'*': '[A-Za-z0-9]'
};The WorkaroundI created a custom component based on the original // CyrillicInputMask.vue
this.defs = {
9: '[0-9]',
a: '[A-Za-z]', // Latin only
ы: '[А-Яа-яЁё]', // Cyrillic only (custom symbol)
'*': '[A-Za-zА-Яа-яЁё0-9]' // Latin + Cyrillic + digits
};Usage example: <CyrillicInputMask
v-model="ingotNumber"
mask="ы{9}.99999-99"
placeholder="ы{_}._____-__"
slotChar="_"
/>
SuggestionIt would be great if the core // Proposed improvement
this.defs = {
9: '[0-9]',
a: '\\p{L}', // Any Unicode letter (Latin, Cyrillic, Arabic, etc.)
'*': '[\\p{L}0-9]' // Any Unicode letter + digits
};Note: This would make InputMask truly international without needing custom symbols for each language. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings.
Could you please advise how to enable Cyrillic in the InputMask component, if the mask attribute accepts the string.
I need the pattern to be `[А-Я]{4}.99999-99''.
Stack: Vue 3, PrimeVue.
Beta Was this translation helpful? Give feedback.
All reactions