-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path_fixtures.js
85 lines (78 loc) · 965 Bytes
/
_fixtures.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
'use strict';
module.exports = [
'a',
'a.md',
'a.js',
'a/',
'a/b',
'a/b/.c.md',
'a/b/c',
'a/b/c.md',
'a/b/c/',
'a/b/c/d',
'a/b/c/d/',
'a/b/c/d/e/f/z.js',
'a/b/c/z.js',
'a/bb',
'a/cb',
'abbbz',
'abc',
'abd',
'z.js',
'za.js',
// literal "!"
'!a.js',
'!a/b',
'!a/b/',
'!a/b/c',
'!a/b/c/',
'!a/!b',
'!a/!b/c',
'!a/!b/c/d',
'!a/b/.c.md',
// root
'/a/',
'/a/b',
'/a/cb',
'/a/bb',
'/a/b/c',
'/a/b/c/',
'/a/b/c/d',
'/a/b/c/d/',
// cwd
'.',
'./',
// ancestor directories
'..',
'../c',
'../c',
'./../c',
'./a/../c',
'/..',
'/../c',
'/../.c',
'/../.c/',
'/a/../c',
'a/../c',
// dot files
'../.b/.c',
'../b/.c',
'./.b/.c',
'./b/.c',
'.b',
'.b.c',
'.b.c/',
'.b/',
'.b/.c',
'.b/c',
'b/.c',
'b/.c/',
// wildcards in filepaths
'a/+b/c',
'+a/+b/c',
'a (foo)',
'a (foo)/(bar)',
'a/b/c (1)',
'a/b (2)/c (1)',
'a/b/c [def]',
];