From b8fde263876491c332b979bb6c914a4f6da60398 Mon Sep 17 00:00:00 2001 From: Mikhail Polivakha <68962645+mipo256@users.noreply.github.com> Date: Fri, 11 Oct 2024 08:05:03 +0300 Subject: [PATCH] Clarified Glob Expressions example with no path separator (#63) --- index.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.rst b/index.rst index 6d97751..9f76ba8 100644 --- a/index.rst +++ b/index.rst @@ -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.