specification icon indicating copy to clipboard operation
specification copied to clipboard

Clarify the behavior of leading slash in section title

Open xuhdev opened this issue 4 years ago • 2 comments

See the confusion in https://github.com/editorconfig/editorconfig-core-test/issues/37#issuecomment-614380017

xuhdev avatar Apr 17 '20 17:04 xuhdev

I'd stick with the .gitignore standard ans make the reference explicit:

The slash / is used as the directory separator. Separators may occur at the beginning, middle or end of the .gitignore search pattern. 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.

florianb avatar Jun 23 '20 06:06 florianb