IFClite TypeScript API
    Preparing search index...

    Class UnsafeRegexPatternError

    Thrown when a caller-supplied regex pattern is rejected by the guard. Callers that want the rejection to surface as a validation error (rather than a thrown exception terminating the whole run) should catch this and turn it into their own error/result shape.

    Hierarchy

    • Error
      • UnsafeRegexPatternError
    Index
    • Parameters

      • pattern: string

        The rejected pattern, verbatim.

      • reason: string

        Human-readable reason the pattern was rejected.

      Returns UnsafeRegexPatternError

    pattern: string

    The rejected pattern, verbatim.

    reason: string

    Human-readable reason the pattern was rejected.