From 172b340d21157356be0c39089a98bcaf7b53f005 Mon Sep 17 00:00:00 2001 From: amordo Date: Wed, 30 Nov 2022 17:15:03 +0100 Subject: [PATCH] Add path usage example in If section --- config.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.md b/config.md index 10e0357..eb6022f 100644 --- a/config.md +++ b/config.md @@ -69,7 +69,9 @@ e.g. `PathMatch: [foo/.*, bar/.*]` matches files in either directory. Conditions based on a file's path use the following form: -- if the fragment came from a project directory, the path is relative +- if the fragment came from a project directory, the path is relative +(note: `./dir/.*` is an incorrect form for `dir` content in the project's root +from the regex perspective, use `dir/.*` instead) - if the fragment is global (e.g. user config), the path is absolute - paths always use forward-slashes (UNIX-style)