• Checks if the given value matches a regex or string

    Parameters

    • value: string

      The string to test

    • pattern: string | RegExp

      Either a regex or a string against which value will be matched

    • requireExactStringMatch: boolean = false

      If true, value must match pattern exactly. If false, value will match pattern if it contains pattern. Only applies to string-type patterns.

    Returns boolean

Generated using TypeDoc