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.

Use standard assertions if possible #7

@RunDevelopment

Description

@RunDevelopment

Standard assertions \b, \B, ^, and $ are efficiently implemented and easy to understand. That's why they should be preferred over lookaround assertions which do the same.

Examples:

/foo(?!\w)/ => /foo\b/,
/foo(?!.)/ => /foo$/m

Metadata

Metadata

Assignees

No one assigned

    Labels

    new ruleruleIt's about new or existing rules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions