editorconfig-core-test icon indicating copy to clipboard operation
editorconfig-core-test copied to clipboard

Tests for escaped special characters in glob expressions

Open rakus opened this issue 7 years ago • 2 comments

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.

rakus avatar Apr 21 '19 11:04 rakus

Another glob expression that should be tested:

; Slash after escaped close bracket
[ab[c\]/]d]
slash_after_escaped_close=true

rakus avatar Apr 22 '19 16:04 rakus

Closed the wrong issue...

xuhdev avatar Jun 30 '19 22:06 xuhdev