|
23 | 23 | ('frotz/', ['frotz/', 'doc/frotz/', 'a/doc/frotz/'], []),
|
24 | 24 | # * matches everything because everything has a basename
|
25 | 25 | ('*', ['foo', 'foo/', 'foo/bar', 'foo/bar/'], []),
|
26 |
| - # *o matches things with basename ending in o |
27 |
| - ('*o', ['foo', 'foo/', 'bar/foo', 'bar/foo/'], ['foo/bar', 'foo/bar/']), |
| 26 | + # *o matches things with basename ending in o, including parent directories |
| 27 | + ('*o', ['foo', 'foo/', 'bar/foo', 'bar/foo/', 'foo/bar'], ['bar', 'bar/baz', 'bar/bar/']), |
28 | 28 | # Leading **/ matches in all directories
|
29 | 29 | (
|
30 | 30 | '**/foo',
|
31 |
| - ['foo', 'foo/', 'bar/foo', 'bar/foo/'], |
32 |
| - ['foo/bar', 'foo/bar/', 'baz/foobar', 'baz/barfoo'], |
| 31 | + ['foo', 'foo/', 'bar/foo', 'bar/foo/', 'foo/bar'], |
| 32 | + ['foobar/baz', 'foobar/baz/', 'baz/foobar', 'baz/barfoo'], |
33 | 33 | ),
|
34 | 34 | ('**/foo/bar', ['foo/bar', 'foo/bar/', 'a/foo/bar'], ['foo/', 'bar/foo', 'bar']),
|
35 | 35 | # Trailing /** matches everything inside a root-relative directory
|
|
0 commit comments