From 2c4c675ef0620ac13d97761f192cc11be7bb90aa Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Sun, 15 Sep 2024 23:07:25 -0700 Subject: [PATCH] Clarify that a section name ending with / does not match any file Fix editorconfig/editorconfig#493 --- index.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.rst b/index.rst index cc44432..d439137 100644 --- a/index.rst +++ b/index.rst @@ -169,6 +169,8 @@ level. For example, ``*.c`` matches any file that ends with ``.c`` in the directory of ``.editorconfig``, but ``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. + The backslash character (``\\``) can be used to escape a character so it is not interpreted as a special character.