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-empty-backreference doesn't handle lookbehinds correctly #17

@RunDevelopment

Description

@RunDevelopment

The function the rule relies upon assumes that expressions will always be matched left-to-right which isn't the case for lookbehinds.

Example:
The pattern \w+(?<=a\1a(b)) matches abab but not aab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingruleIt's about new or existing rules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions