-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit 498780e
Refine EditorConfig glob spec
The glob spec of EditorConfig works in a non-intuitive way that is
different from glob of POSIX-compatible shells. The pattern matching is
done in the directory the target file is in instead of the EditorConfig
file in, like the '.gitignore' file. Therefore, simply 'foo' matches
'foo' in the root directory and each sub-directory, and '/foo' has to be
used to match the file in the root directory only.
See: editorconfig/editorconfig#283 (comment)
Change-Id: Iea6d25f2ba551db0420ed1fa968f0b355046cabf1 parent d4d5f11 commit 498780e
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | - | ||
13 | + | ||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | - | ||
18 | + | ||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | - | ||
22 | + | ||
23 | 23 |
| |
24 | 24 |
|
0 commit comments