Skip to content
This repository was archived by the owner on Oct 11, 2021. It is now read-only.
This repository was archived by the owner on Oct 11, 2021. It is now read-only.

no-unnecessary-lazy: Improve rule #20

@RunDevelopment

Description

@RunDevelopment

Right now, the rule only reports lazy constant quantifiers but it can do a lot more:

If the next character of the lazy quantifier is not a prefix of the lazily quantified element, the lazy modifier can be removed.

Example:

/ab+?c/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions