Function isLengthRangeMinZero
- isLengthRangeMinZero(element, flags): boolean
-
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[]
-
Returns boolean
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