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.

Consistent match all character class #9

@RunDevelopment

Description

@RunDevelopment

There are multiple ways to express a character class which accepts all characters but you should choose one and stick with it to make your regexes easier to understand.

Examples:

/[\s\S]/, /[\d\D]/, /[\w\W]/, /[^]/

Notes:
If present, we could even take advantage of the s flag.

This should also detect alternations which are equal to the set of all characters. Examples:

/(?:\s|\S)/, /\s|\S/, /(?:.|\s)/, /.|\D/

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