Function isLengthRangeMinZero

  • Returns whether getLengthRange(e).min == 0.

    This function is slightly different from isPotentiallyZeroLength in how it handles backreferences. See the notes on backreferences in the documentation of isPotentiallyZeroLength and getLengthRange for more information.

    Relations

    • isLengthRangeMinZero(e) <-> getLengthRange(e).min == 0

    Parameters

    • element: Alternative | CapturingGroup | ClassRangesCharacterClass | UnicodeSetsCharacterClass | CharacterClassRange | ClassIntersection | ClassStringDisjunction | ClassSubtraction | ExpressionCharacterClass | Group | LookaheadAssertion | LookbehindAssertion | Quantifier | StringAlternative | Backreference | EdgeAssertion | WordBoundaryAssertion | Character | AnyCharacterSet | EscapeCharacterSet | CharacterUnicodePropertyCharacterSet | StringsUnicodePropertyCharacterSet | readonly Alternative[]
    • flags: ReadonlyFlags

    Returns boolean

    Throws

    if an empty array of alternatives is given.

    See

    getLengthRange