File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,22 @@ const data = [
19
19
pattern : '' ,
20
20
hits : [ 0 , 1 , 2 , 3 , 4 ] ,
21
21
} ,
22
+ {
23
+ pattern : 'a' ,
24
+ hits : [ 0 ] ,
25
+ } ,
26
+ {
27
+ pattern : 'b' ,
28
+ hits : [ 1 ] ,
29
+ } ,
30
+ {
31
+ pattern : 'c' ,
32
+ hits : [ 2 ] ,
33
+ } ,
34
+ {
35
+ pattern : 'd' ,
36
+ hits : [ 3 ] ,
37
+ } ,
22
38
{
23
39
pattern : 'abcde' ,
24
40
hits : [ ] ,
@@ -27,10 +43,30 @@ const data = [
27
43
pattern : 'abcd' ,
28
44
hits : [ 0 ] ,
29
45
} ,
46
+ {
47
+ pattern : 'ab' ,
48
+ hits : [ 0 ] ,
49
+ } ,
30
50
{
31
51
pattern : 'bc' ,
32
52
hits : [ 1 ] ,
33
53
} ,
54
+ {
55
+ pattern : 'cd' ,
56
+ hits : [ 2 ] ,
57
+ } ,
58
+ {
59
+ pattern : 'abc' ,
60
+ hits : [ 0 ] ,
61
+ } ,
62
+ {
63
+ pattern : 'bcd' ,
64
+ hits : [ 1 ] ,
65
+ } ,
66
+ {
67
+ pattern : 'xyz' ,
68
+ hits : [ ] ,
69
+ } ,
34
70
] ,
35
71
} ,
36
72
{
@@ -88,6 +124,23 @@ const data = [
88
124
} ,
89
125
] ,
90
126
} ,
127
+ {
128
+ string : 'xyyzxxyxzzzxyxyxxyzxyzxzxyxyzz' ,
129
+ patterns : [
130
+ {
131
+ pattern : 'xyz' ,
132
+ hits : [ 16 , 19 , 26 ] ,
133
+ } ,
134
+ {
135
+ pattern : 'zz' ,
136
+ hits : [ 8 , 9 , 28 ] ,
137
+ } ,
138
+ {
139
+ pattern : 'xyx' ,
140
+ hits : [ 5 , 11 , 13 , 24 ] ,
141
+ } ,
142
+ ] ,
143
+ } ,
91
144
] ;
92
145
93
146
export default data ;
You can’t perform that action at this time.
0 commit comments