fn

removeFixedMaskCharacters

tested

Strip 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

ParameterTypeDescription
stateElementState
maskMaskExpression

Returns

ElementState
PropertyTypeDescription
valuestring
selectionSelectionRange