fn
removeFixedMaskCharacters
testedStrip fixed mask characters from a (masked) state, returning the raw value and the selection remapped into that unmasked space. RegExp masks have no fixed characters, so the state is returned unchanged.
Signature
ts
export function removeFixedMaskCharacters(state: ElementState, mask: MaskExpression): ElementState{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
state | ElementState | — |
mask | MaskExpression | — |
Returns
ElementState| Property | Type | Description |
|---|---|---|
value | string | — |
selection | SelectionRange | — |