Skip to content

Commit

Permalink
Clarified Glob Expressions example with no path separator (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
mipo256 authored Oct 11, 2024
1 parent 6b0263e commit b8fde26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ If the glob contains a path separator (a ``/`` not inside square brackets), then
to the directory level of the particular `.editorconfig` file itself.
Otherwise the pattern may also match at any level below the `.editorconfig`
level. For example, ``*.c`` matches any file that ends with ``.c`` in the
directory of ``.editorconfig``, but ``subdir/*.c`` only matches files that end
directory of ``.editorconfig`` or any other directory below one that stores this ``.editorconfig``.
However, the glob ``subdir/*.c`` only matches files that end
with ``.c`` in the ``subdir`` directory in the directory of ``.editorconfig``.

As a corollary, a section name ending with ``/`` does not match any file.
Expand Down

0 comments on commit b8fde26

Please sign in to comment.