Skip to content

Tests for escaped special characters in glob expressions #26

Description

@rakus

The editorconfig home page, section File Format Details says:

Special characters can be escaped with a backslash so they won't be interpreted as wildcard patterns.

So from my understanding, the following glob expressions are valid and should be tested.

[a\*.abc]
tab_width=19

[a\?.abc]
tab_width=20

[a\[.abc]
tab_width=21

[a\{.abc]
tab_width=22

I could provide a pull request if you are interested.

PS: The escaped '[' and '{' result in invalid regular expressions in editorconfig-core-py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions