* Gets the string pattern to pass to the input element * and use in the regex for allowed characters.
()
| 286 | * and use in the regex for allowed characters. |
| 287 | */ |
| 288 | private getPattern(): string { |
| 289 | const { pattern, type } = this; |
| 290 | if (pattern) { |
| 291 | return pattern; |
| 292 | } |
| 293 | return type === 'number' ? '[\\p{N}]' : '[\\p{L}\\p{N}]'; |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Get the default value for inputmode. |
no outgoing calls
no test coverage detected