-
-
Notifications
You must be signed in to change notification settings - Fork 480
/
patterns.sh
49 lines (40 loc) · 1.44 KB
/
patterns.sh
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
patterns=(
'{0000,0,1111,1}/{0000,0,1111,1}/{0000,0,1111,1}/**'
'**'
'**/..'
# some of these aren't particularly "representative" of real-world
# glob patterns, but they're here to highlight pathological perf
# cases that I found while working on the rewrite of this library.
'./**/0/**/0/**/0/**/0/**/*.txt'
'./**/[01]/**/[12]/**/[23]/**/[45]/**/*.txt'
'./**/0/**/0/**/*.txt'
'**/*.txt'
'{**/*.txt,**/?/**/*.txt,**/?/**/?/**/*.txt,**/?/**/?/**/?/**/*.txt,**/?/**/?/**/?/**/?/**/*.txt}'
'**/5555/0000/*.txt'
'./**/0/**/../[01]/**/0/../**/0/*.txt'
'**/????/????/????/????/*.txt'
'./{**/?{/**/?{/**/?{/**/?,,,,},,,,},,,,},,,}/**/*.txt'
'**/!(0|9).txt'
'./{*/**/../{*/**/../{*/**/../{*/**/../{*/**,,,,},,,,},,,,},,,,},,,,}/*.txt'
'./*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/*.txt'
'./*/**/../*/**/../*/**/../*/**/../*/**/*.txt'
'./0/**/../1/**/../2/**/../3/**/../4/**/../5/**/../6/**/../7/**/*.txt'
'./**/?/**/?/**/?/**/?/**/*.txt'
'**/*/**/*/**/*/**/*/**'
# '5555/0000/**/*.txt'
# '*/*/9/**/**/**/**/*/**/**/*.txt'
'./**/*/**/*/**/*/**/*/**/*.txt'
'**/*.txt'
# './**/*.txt'
'./**/**/**/**/**/**/**/**/*.txt'
'**/*/*.txt'
'**/*/**/*.txt'
'**/[0-9]/**/*.txt'
# '0/@([5-9]/*.txt|8/**)'
# '[0-9]/[0-9]/[0-9]/[0-9]/[0-9].txt'
# /**/**/**/**//////**/**//*.txt'
# '**/[5-9]/*.txt'
# '[678]/**/2.txt'
# '0/!(1|2)@(4|5)/**/**/**/**/*.txt'
# '0/!(1|2|@(4|5))/**/**/**/**/*.txt'
)