File: patterns.sh

package info (click to toggle)
node-glob 10.3.6%2B~cs0.4.15-5
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,028 kB
  • sloc: javascript: 1,348; sh: 191; makefile: 16
file content (49 lines) | stat: -rw-r--r-- 1,473 bytes parent folder | download | duplicates (3)
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'
)