Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains information used to format strings for display using token replacement.

Hierarchy

  • Mask

Index

Properties

Methods

Properties

mask: string

The mask to apply to an input.

Methods

  • rxToken(): RegExp
  • Creates a new regular expression that matches a single token from the mask to be replaced by the next input character.

    Returns RegExp

  • test(symbol: string, value: string): boolean
  • Determines whether the given value from the input matches the specified symbol type. If it does, the input will be included in the output. Otherwise, the mask literal will be copied to the output.

    Parameters

    • symbol: string

      The symbol to test the value against.

    • value: string

      The value to test against the symbol.

    Returns boolean