iya-sts
    Preparing search index...

    The checks a regular expression an administrator, a policy author or a caller wrote is held to before this service compiles it.

    A static utility class; it holds no state and takes no dependencies.

    Index
    • get INPUT_MAX(): number

      The longest value a caller matches when it names no length of its own.

      Returns number

    • get PATTERN_MAX(): number

      The longest pattern accepted when a caller names no length of its own.

      Returns number

    • Says whether a group that holds a quantifier or an alternation (at any depth) is itself followed by a quantifier.

      A scan rather than a regex over the pattern, because the groups nest and a regex cannot count them. Escapes and character classes are stepped over: [+] is a plus sign, not a quantifier.

      Parameters

      • text: unknown

        the pattern's source text

      Returns boolean

      true for the exponential shape

    • Says why a pattern may not be compiled here: too long, a backreference, or a quantified group that is itself quantified or an alternation. Whether it COMPILES is the caller's question, since each caller has a dialect (an anchoring, XML Schema's \i, JSON Schema's u flag).

      Parameters

      • text: unknown

        the pattern

      • OptionalmaxLength: number

        the longest pattern accepted; PATTERN_MAX when omitted

      Returns string

      the problem as a sentence, or '' when it is usable or empty