specification icon indicating copy to clipboard operation
specification copied to clipboard

Clarify the effects of path separator

Open xuhdev opened this issue 1 year ago • 1 comments

This is consistent with the rules from .gitignore: https://git-scm.com/docs/gitignore

If there is a separator at the beginning or middle (or both) of the pattern, then the pattern is relative to the directory level of the particular .gitignore file itself. Otherwise the pattern may also match at any level below the .gitignore level.

Since we intend to be consistent with .gitignore, this part of the spec has been unclear.

Fix editorconfig/editorconfig#509

xuhdev avatar Jun 18 '24 21:06 xuhdev

And we have been unclear with slashes at the end because it didn't matter as matching directories is pointless...

xuhdev avatar Jun 18 '24 21:06 xuhdev