fn
calibrateValueByMask
testedEntry point: conform state.value to mask. Fast-returns when the value is
already a valid prefix, otherwise dispatches to the array or RegExp guesser.
Signature
ts
export function calibrateValueByMask(state: ElementState, mask: Mask): ElementState{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
state | ElementState | — |
mask | Mask | — |
Returns
ElementState| Property | Type | Description |
|---|---|---|
value | string | — |
selection | SelectionRange | — |