Function regexValueMatcher

  • Builds a regular expression matching the values of an enum.

    The #toString function is used to transform the values into an string representation. The regex special characters are escaped from the expression.

    Type Parameters

    • T

    Parameters

    • enumerator: Enumerator<T, any>

      The enum.

    • strict: boolean = true

      If true, the regex pattern will match ONLY the keys with no preceding or postceding characters. Otherwise, the regex will match keys that are found within any part of a string.

    • Optional flags: string

      Flags of the regular expression.

    Returns RegExp

Generated using TypeDoc