sportdb-parser 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/sportdb/parser/parser.rb +111 -118
- data/lib/sportdb/parser/token-score.rb +5 -5
- data/lib/sportdb/parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 810f7cacd444fa67848438b267081211851a2ab8ff8e2da633bdf9c885bf102b
|
4
|
+
data.tar.gz: f15d3dc28d68c4d12737ace20fbc0f1110f1b0b864a96cf33950c6cb6b946a87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ccc2618cfb5400f869a18cb6fcbb5f1f7323515e439983c5ac65fe3c9fbd6a9bb53b501e3196cca01f00db921e1f08153854167d78fa0509da4cd2e99d7445a
|
7
|
+
data.tar.gz: 92395315b0e90b501584b48dfbd1dea206c35e8cf91dae3d2a2357e6d18f8948e5fd5ee3b855c77dd5c201205e0592451cb149487b17315bc58733aa304e8897
|
data/CHANGELOG.md
CHANGED
@@ -9,107 +9,103 @@ class RaccMatchParser < Racc::Parser
|
|
9
9
|
##### State transition tables begin ###
|
10
10
|
|
11
11
|
racc_action_table = [
|
12
|
-
|
13
|
-
|
14
|
-
55, 61, 62, 65, 65, 31,
|
15
|
-
|
16
|
-
28, 25, 14, 15, 16,
|
17
|
-
25, 14, 15,
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
12
|
+
102, 94, 60, 119, 28, 35, 37, 129, 43, 57,
|
13
|
+
38, 39, 22, 60, 43, 120, 41, 36, 49, 68,
|
14
|
+
55, 61, 62, 65, 65, 31, 128, 12, 40, 30,
|
15
|
+
58, 28, 61, 62, 66, 16, 12, 70, 30, 13,
|
16
|
+
28, 25, 14, 15, 16, 20, 22, 80, 13, 81,
|
17
|
+
25, 14, 15, 71, 20, 22, 54, 51, 54, 91,
|
18
|
+
72, 74, 75, 76, 44, 47, 46, 85, 86, 104,
|
19
|
+
105, 117, 118, 83, 52, 55, 52, 55, 125, 126,
|
20
|
+
134, 126, 87, 88, 65, 89, 49, 96, 98, 40,
|
21
|
+
99, 100, 43, 107, 43, 109, 35, 111, 112, 80,
|
22
|
+
65, 121, 122, 123, 49, 127, 65, 43, 43, 35,
|
23
|
+
132, 65, 49, 136, 137 ]
|
24
24
|
|
25
25
|
racc_action_check = [
|
26
|
-
63,
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
0, 1, 1, 1, 0, 1, 1,
|
31
|
-
0, 0, 0,
|
32
|
-
|
33
|
-
65, 81, 81,
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
26
|
+
63, 52, 25, 82, 16, 12, 13, 97, 27, 20,
|
27
|
+
14, 15, 20, 49, 16, 82, 16, 13, 18, 27,
|
28
|
+
52, 25, 25, 63, 25, 1, 97, 1, 15, 1,
|
29
|
+
24, 1, 49, 49, 26, 1, 0, 28, 0, 1,
|
30
|
+
0, 1, 1, 1, 0, 1, 1, 35, 0, 35,
|
31
|
+
0, 0, 0, 31, 0, 0, 19, 19, 48, 48,
|
32
|
+
33, 33, 33, 33, 17, 17, 17, 38, 38, 65,
|
33
|
+
65, 81, 81, 36, 19, 19, 48, 48, 92, 92,
|
34
|
+
124, 124, 41, 42, 43, 45, 51, 53, 55, 57,
|
35
|
+
59, 62, 67, 68, 70, 72, 73, 75, 76, 78,
|
36
|
+
80, 84, 87, 88, 91, 95, 102, 106, 108, 114,
|
37
|
+
115, 116, 126, 129, 131 ]
|
38
38
|
|
39
39
|
racc_action_pointer = [
|
40
40
|
34, 25, nil, nil, nil, nil, nil, nil, nil, nil,
|
41
|
-
nil, nil, -
|
42
|
-
|
43
|
-
nil,
|
44
|
-
nil, 71, 72, 56, nil, 68, nil, nil,
|
45
|
-
|
46
|
-
nil, nil,
|
47
|
-
|
48
|
-
|
49
|
-
nil,
|
50
|
-
|
51
|
-
nil, nil, nil, nil,
|
52
|
-
nil, nil, nil, nil, nil,
|
53
|
-
|
54
|
-
nil, nil ]
|
41
|
+
nil, nil, -2, 2, -5, 7, -2, 60, 2, 52,
|
42
|
+
-9, nil, nil, nil, 4, -4, 30, -8, 10, nil,
|
43
|
+
nil, 53, nil, 57, nil, 39, 57, nil, 49, nil,
|
44
|
+
nil, 71, 72, 56, nil, 68, nil, nil, 54, 7,
|
45
|
+
nil, 70, -3, 83, nil, 72, nil, 68, nil, 74,
|
46
|
+
nil, nil, 75, -5, nil, 40, nil, 76, 89, nil,
|
47
|
+
78, nil, 91, 89, nil, 93, 94, nil, 91, nil,
|
48
|
+
72, 59, -1, nil, 97, nil, nil, 98, 99, nil,
|
49
|
+
nil, 88, 74, nil, nil, 101, nil, 2, nil, nil,
|
50
|
+
nil, nil, 78, nil, nil, nil, 91, nil, 92, nil,
|
51
|
+
nil, nil, nil, nil, 102, 99, 83, nil, nil, nil,
|
52
|
+
nil, nil, nil, nil, 76, nil, 96, nil, nil, 97,
|
53
|
+
nil, 105, nil, nil, nil, nil, nil, nil ]
|
55
54
|
|
56
55
|
racc_action_default = [
|
57
56
|
-90, -90, -1, -3, -4, -5, -6, -7, -8, -9,
|
58
57
|
-10, -11, -90, -90, -41, -54, -90, -90, -90, -90,
|
59
|
-
-
|
58
|
+
-51, -53, -56, -65, -66, -90, -90, -74, -90, -79,
|
60
59
|
-89, -90, -2, -90, -13, -20, -90, -39, -90, -37,
|
61
|
-
-55, -90, -90, -90, -40, -90, -43, -44, -90, -
|
62
|
-
-
|
60
|
+
-55, -90, -90, -90, -40, -90, -43, -44, -90, -90,
|
61
|
+
-46, -90, -90, -90, -60, -90, -52, -54, -71, -90,
|
63
62
|
-68, -69, -90, -81, -82, -85, -73, -90, -77, -80,
|
64
|
-
-90,
|
63
|
+
-90, 138, -90, -90, -15, -16, -18, -21, -22, -24,
|
65
64
|
-90, -90, -90, -32, -90, -35, -36, -90, -90, -42,
|
66
|
-
-45, -90, -
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-67, -25 ]
|
65
|
+
-45, -90, -90, -49, -57, -90, -59, -61, -63, -67,
|
66
|
+
-70, -83, -90, -86, -87, -88, -76, -78, -75, -12,
|
67
|
+
-14, -17, -19, -23, -90, -90, -27, -29, -30, -31,
|
68
|
+
-33, -34, -38, -72, -90, -48, -90, -58, -62, -90,
|
69
|
+
-84, -90, -26, -28, -47, -50, -64, -25 ]
|
72
70
|
|
73
71
|
racc_goto_table = [
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
nil, nil, nil,
|
78
|
-
|
79
|
-
nil, nil, nil, nil, nil, nil,
|
80
|
-
nil, nil,
|
81
|
-
nil, nil, nil,
|
82
|
-
nil,
|
72
|
+
48, 34, 69, 101, 79, 92, 50, 106, 2, 32,
|
73
|
+
108, 1, 33, 73, 77, 78, 115, 116, 82, 84,
|
74
|
+
114, 45, 56, 95, 97, 42, 67, 103, nil, nil,
|
75
|
+
nil, nil, nil, 93, nil, 90, nil, nil, nil, nil,
|
76
|
+
nil, nil, 130, nil, nil, 124, nil, 113, nil, nil,
|
77
|
+
nil, nil, nil, nil, nil, nil, 133, nil, nil, nil,
|
78
|
+
nil, nil, 110, nil, nil, nil, nil, nil, nil, nil,
|
79
|
+
nil, nil, nil, 93, nil, nil, nil, nil, nil, nil,
|
80
|
+
nil, 69, nil, 69, nil, nil, nil, nil, nil, nil,
|
83
81
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
84
|
-
nil, nil, nil,
|
85
|
-
nil, nil, 139 ]
|
82
|
+
nil, nil, nil, 131, nil, nil, nil, nil, 135 ]
|
86
83
|
|
87
84
|
racc_goto_check = [
|
88
|
-
|
85
|
+
26, 13, 38, 18, 17, 28, 27, 36, 2, 2,
|
89
86
|
36, 1, 12, 14, 15, 16, 19, 20, 21, 22,
|
90
|
-
18, 24,
|
91
|
-
nil, nil, nil,
|
92
|
-
|
93
|
-
nil, nil, nil, nil, nil, nil,
|
87
|
+
18, 24, 29, 30, 31, 35, 37, 40, nil, nil,
|
88
|
+
nil, nil, nil, 26, nil, 27, nil, nil, nil, nil,
|
89
|
+
nil, nil, 18, nil, nil, 28, nil, 17, nil, nil,
|
90
|
+
nil, nil, nil, nil, nil, nil, 18, nil, nil, nil,
|
94
91
|
nil, nil, 13, nil, nil, nil, nil, nil, nil, nil,
|
95
|
-
nil, nil, nil,
|
96
|
-
nil,
|
92
|
+
nil, nil, nil, 26, nil, nil, nil, nil, nil, nil,
|
93
|
+
nil, 38, nil, 38, nil, nil, nil, nil, nil, nil,
|
97
94
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
98
|
-
nil, nil, nil,
|
99
|
-
nil, nil, 28 ]
|
95
|
+
nil, nil, nil, 13, nil, nil, nil, nil, 26 ]
|
100
96
|
|
101
97
|
racc_goto_pointer = [
|
102
98
|
nil, 11, 8, nil, nil, nil, nil, nil, nil, nil,
|
103
99
|
nil, nil, 0, -11, -20, -21, -20, -31, -60, -65,
|
104
|
-
-64, -18, -19, nil, 4, nil,
|
105
|
-
|
106
|
-
-
|
100
|
+
-64, -18, -19, nil, 4, nil, -18, -13, -46, 2,
|
101
|
+
-29, -31, nil, nil, nil, 9, -60, -1, -25, nil,
|
102
|
+
-38 ]
|
107
103
|
|
108
104
|
racc_goto_default = [
|
109
105
|
nil, nil, nil, 3, 4, 5, 6, 7, 8, 9,
|
110
106
|
10, 11, nil, nil, nil, nil, nil, nil, 64, nil,
|
111
|
-
nil, nil, nil, 17, nil, 18, 19, nil,
|
112
|
-
|
107
|
+
nil, nil, nil, 17, nil, 18, 19, nil, nil, 21,
|
108
|
+
53, nil, 23, 24, 59, 26, 27, nil, 29, 63,
|
113
109
|
nil ]
|
114
110
|
|
115
111
|
racc_reduce_table = [
|
@@ -162,29 +158,29 @@ racc_reduce_table = [
|
|
162
158
|
2, 39, :_reduce_46,
|
163
159
|
5, 39, :_reduce_47,
|
164
160
|
4, 39, :_reduce_48,
|
165
|
-
1,
|
166
|
-
3,
|
161
|
+
1, 59, :_reduce_49,
|
162
|
+
3, 59, :_reduce_50,
|
167
163
|
1, 56, :_reduce_51,
|
168
164
|
2, 56, :_reduce_52,
|
169
165
|
1, 56, :_reduce_none,
|
170
|
-
1,
|
171
|
-
2,
|
172
|
-
1,
|
166
|
+
1, 60, :_reduce_54,
|
167
|
+
2, 60, :_reduce_55,
|
168
|
+
1, 60, :_reduce_56,
|
173
169
|
2, 58, :_reduce_57,
|
174
170
|
3, 58, :_reduce_58,
|
175
171
|
2, 58, :_reduce_59,
|
176
172
|
1, 58, :_reduce_60,
|
177
|
-
2,
|
178
|
-
3,
|
179
|
-
1,
|
180
|
-
3,
|
173
|
+
2, 61, :_reduce_61,
|
174
|
+
3, 61, :_reduce_62,
|
175
|
+
1, 62, :_reduce_63,
|
176
|
+
3, 62, :_reduce_64,
|
181
177
|
1, 57, :_reduce_none,
|
182
178
|
1, 57, :_reduce_none,
|
183
|
-
3,
|
179
|
+
3, 64, :_reduce_67,
|
184
180
|
1, 65, :_reduce_none,
|
185
181
|
1, 65, :_reduce_none,
|
186
|
-
3,
|
187
|
-
|
182
|
+
3, 63, :_reduce_70,
|
183
|
+
2, 63, :_reduce_71,
|
188
184
|
4, 40, :_reduce_72,
|
189
185
|
2, 40, :_reduce_73,
|
190
186
|
1, 66, :_reduce_74,
|
@@ -206,7 +202,7 @@ racc_reduce_table = [
|
|
206
202
|
|
207
203
|
racc_reduce_n = 90
|
208
204
|
|
209
|
-
racc_shift_n =
|
205
|
+
racc_shift_n = 138
|
210
206
|
|
211
207
|
racc_token_table = {
|
212
208
|
false => 0,
|
@@ -322,12 +318,12 @@ Racc_token_to_s_table = [
|
|
322
318
|
"match_opts",
|
323
319
|
"match",
|
324
320
|
"more_match_opts",
|
325
|
-
"
|
326
|
-
"more_match_fixtures",
|
321
|
+
"more_matches",
|
327
322
|
"date_opts",
|
328
323
|
"geo_opts",
|
329
324
|
"geo_values",
|
330
325
|
"match_result",
|
326
|
+
"match_fixture",
|
331
327
|
"match_sep",
|
332
328
|
"goal_lines_body",
|
333
329
|
"goals",
|
@@ -761,7 +757,7 @@ module_eval(<<'.,.,', 'parser.y', 256)
|
|
761
757
|
|
762
758
|
module_eval(<<'.,.,', 'parser.y', 264)
|
763
759
|
def _reduce_67(val, _values, result)
|
764
|
-
puts "
|
760
|
+
puts " RECUDE match_fixture"
|
765
761
|
result = { team1: val[0],
|
766
762
|
team2: val[2] }
|
767
763
|
|
@@ -775,29 +771,26 @@ module_eval(<<'.,.,', 'parser.y', 264)
|
|
775
771
|
|
776
772
|
module_eval(<<'.,.,', 'parser.y', 275)
|
777
773
|
def _reduce_70(val, _values, result)
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
774
|
+
puts " REDUCE => match_result : TEXT SCORE TEXT"
|
775
|
+
result = { team1: val[0],
|
776
|
+
team2: val[2],
|
777
|
+
score: val[1][1]
|
778
|
+
}
|
783
779
|
|
784
780
|
result
|
785
781
|
end
|
786
782
|
.,.,
|
787
783
|
|
788
|
-
module_eval(<<'.,.,', 'parser.y',
|
784
|
+
module_eval(<<'.,.,', 'parser.y', 283)
|
789
785
|
def _reduce_71(val, _values, result)
|
790
|
-
|
791
|
-
|
792
|
-
team2: val[2],
|
793
|
-
score: val[3][1]
|
794
|
-
}
|
786
|
+
puts " REDUCE => match_result : match_fixture SCORE"
|
787
|
+
result = { score: val[1][1] }.merge( val[0] )
|
795
788
|
|
796
789
|
result
|
797
790
|
end
|
798
791
|
.,.,
|
799
792
|
|
800
|
-
module_eval(<<'.,.,', 'parser.y',
|
793
|
+
module_eval(<<'.,.,', 'parser.y', 302)
|
801
794
|
def _reduce_72(val, _values, result)
|
802
795
|
kwargs = val[1]
|
803
796
|
@tree << GoalLine.new( **kwargs )
|
@@ -806,7 +799,7 @@ module_eval(<<'.,.,', 'parser.y', 311)
|
|
806
799
|
end
|
807
800
|
.,.,
|
808
801
|
|
809
|
-
module_eval(<<'.,.,', 'parser.y',
|
802
|
+
module_eval(<<'.,.,', 'parser.y', 307)
|
810
803
|
def _reduce_73(val, _values, result)
|
811
804
|
kwargs = val[0]
|
812
805
|
@tree << GoalLine.new( **kwargs )
|
@@ -815,7 +808,7 @@ module_eval(<<'.,.,', 'parser.y', 316)
|
|
815
808
|
end
|
816
809
|
.,.,
|
817
810
|
|
818
|
-
module_eval(<<'.,.,', 'parser.y',
|
811
|
+
module_eval(<<'.,.,', 'parser.y', 312)
|
819
812
|
def _reduce_74(val, _values, result)
|
820
813
|
result = { goals1: val[0],
|
821
814
|
goals2: [] }
|
@@ -824,7 +817,7 @@ module_eval(<<'.,.,', 'parser.y', 321)
|
|
824
817
|
end
|
825
818
|
.,.,
|
826
819
|
|
827
|
-
module_eval(<<'.,.,', 'parser.y',
|
820
|
+
module_eval(<<'.,.,', 'parser.y', 315)
|
828
821
|
def _reduce_75(val, _values, result)
|
829
822
|
result = { goals1: [],
|
830
823
|
goals2: val[2] }
|
@@ -833,7 +826,7 @@ module_eval(<<'.,.,', 'parser.y', 324)
|
|
833
826
|
end
|
834
827
|
.,.,
|
835
828
|
|
836
|
-
module_eval(<<'.,.,', 'parser.y',
|
829
|
+
module_eval(<<'.,.,', 'parser.y', 318)
|
837
830
|
def _reduce_76(val, _values, result)
|
838
831
|
result = { goals1: val[0],
|
839
832
|
goals2: val[2] }
|
@@ -846,51 +839,51 @@ module_eval(<<'.,.,', 'parser.y', 327)
|
|
846
839
|
|
847
840
|
# reduce 78 omitted
|
848
841
|
|
849
|
-
module_eval(<<'.,.,', 'parser.y',
|
842
|
+
module_eval(<<'.,.,', 'parser.y', 332)
|
850
843
|
def _reduce_79(val, _values, result)
|
851
844
|
result = val
|
852
845
|
result
|
853
846
|
end
|
854
847
|
.,.,
|
855
848
|
|
856
|
-
module_eval(<<'.,.,', 'parser.y',
|
849
|
+
module_eval(<<'.,.,', 'parser.y', 333)
|
857
850
|
def _reduce_80(val, _values, result)
|
858
851
|
result.push( val[1])
|
859
852
|
result
|
860
853
|
end
|
861
854
|
.,.,
|
862
855
|
|
863
|
-
module_eval(<<'.,.,', 'parser.y',
|
856
|
+
module_eval(<<'.,.,', 'parser.y', 349)
|
864
857
|
def _reduce_81(val, _values, result)
|
865
|
-
|
866
|
-
|
858
|
+
result = Goal.new( player: val[0],
|
859
|
+
minutes: val[1] )
|
867
860
|
|
868
861
|
result
|
869
862
|
end
|
870
863
|
.,.,
|
871
864
|
|
872
|
-
module_eval(<<'.,.,', 'parser.y',
|
865
|
+
module_eval(<<'.,.,', 'parser.y', 361)
|
873
866
|
def _reduce_82(val, _values, result)
|
874
867
|
result = val
|
875
868
|
result
|
876
869
|
end
|
877
870
|
.,.,
|
878
871
|
|
879
|
-
module_eval(<<'.,.,', 'parser.y',
|
872
|
+
module_eval(<<'.,.,', 'parser.y', 362)
|
880
873
|
def _reduce_83(val, _values, result)
|
881
874
|
result.push( val[1])
|
882
875
|
result
|
883
876
|
end
|
884
877
|
.,.,
|
885
878
|
|
886
|
-
module_eval(<<'.,.,', 'parser.y',
|
879
|
+
module_eval(<<'.,.,', 'parser.y', 363)
|
887
880
|
def _reduce_84(val, _values, result)
|
888
881
|
result.push( val[2])
|
889
882
|
result
|
890
883
|
end
|
891
884
|
.,.,
|
892
885
|
|
893
|
-
module_eval(<<'.,.,', 'parser.y',
|
886
|
+
module_eval(<<'.,.,', 'parser.y', 369)
|
894
887
|
def _reduce_85(val, _values, result)
|
895
888
|
kwargs = {}.merge( val[0][1] )
|
896
889
|
result = Minute.new( **kwargs )
|
@@ -899,7 +892,7 @@ module_eval(<<'.,.,', 'parser.y', 362)
|
|
899
892
|
end
|
900
893
|
.,.,
|
901
894
|
|
902
|
-
module_eval(<<'.,.,', 'parser.y',
|
895
|
+
module_eval(<<'.,.,', 'parser.y', 374)
|
903
896
|
def _reduce_86(val, _values, result)
|
904
897
|
kwargs = { }.merge( val[0][1] ).merge( val[1] )
|
905
898
|
result = Minute.new( **kwargs )
|
@@ -908,21 +901,21 @@ module_eval(<<'.,.,', 'parser.y', 367)
|
|
908
901
|
end
|
909
902
|
.,.,
|
910
903
|
|
911
|
-
module_eval(<<'.,.,', 'parser.y',
|
904
|
+
module_eval(<<'.,.,', 'parser.y', 378)
|
912
905
|
def _reduce_87(val, _values, result)
|
913
906
|
result = { og: true }
|
914
907
|
result
|
915
908
|
end
|
916
909
|
.,.,
|
917
910
|
|
918
|
-
module_eval(<<'.,.,', 'parser.y',
|
911
|
+
module_eval(<<'.,.,', 'parser.y', 379)
|
919
912
|
def _reduce_88(val, _values, result)
|
920
913
|
result = { pen: true }
|
921
914
|
result
|
922
915
|
end
|
923
916
|
.,.,
|
924
917
|
|
925
|
-
module_eval(<<'.,.,', 'parser.y',
|
918
|
+
module_eval(<<'.,.,', 'parser.y', 384)
|
926
919
|
def _reduce_89(val, _values, result)
|
927
920
|
puts ' MATCH empty_line'
|
928
921
|
result
|
@@ -25,7 +25,7 @@ class Parser
|
|
25
25
|
)? # note: make penalty (P) score optional for now
|
26
26
|
(?<et1>\d{1,2}) - (?<et2>\d{1,2})
|
27
27
|
[ ]* #{ET_EN}
|
28
|
-
(?=[
|
28
|
+
(?=[ ,\]]|$)
|
29
29
|
)}ix
|
30
30
|
## todo/check: remove loakahead assertion here - why require space?
|
31
31
|
## note: \b works only after non-alphanum e.g. )
|
@@ -38,7 +38,7 @@ class Parser
|
|
38
38
|
\b
|
39
39
|
(?<p1>\d{1,2}) - (?<p2>\d{1,2})
|
40
40
|
[ ]* #{P_EN}
|
41
|
-
(?=[
|
41
|
+
(?=[ ,\]]|$)
|
42
42
|
)}ix
|
43
43
|
## todo/check: remove loakahead assertion here - why require space?
|
44
44
|
## note: \b works only after non-alphanum e.g. )
|
@@ -71,7 +71,7 @@ class Parser
|
|
71
71
|
)?
|
72
72
|
)? # note: make half time (HT) score optional for now
|
73
73
|
\)
|
74
|
-
(?=[
|
74
|
+
(?=[ ,\]]|$)
|
75
75
|
)}ix ## todo/check: remove loakahead assertion here - why require space?
|
76
76
|
## note: \b works only after non-alphanum e.g. )
|
77
77
|
|
@@ -94,7 +94,7 @@ class Parser
|
|
94
94
|
)?
|
95
95
|
)? # note: make half time (HT) score optional for now
|
96
96
|
\)
|
97
|
-
(?=[
|
97
|
+
(?=[ ,\]]|$)
|
98
98
|
)}ix ## todo/check: remove loakahead assertion here - why require space?
|
99
99
|
## note: \b works only after non-alphanum e.g. )
|
100
100
|
|
@@ -112,7 +112,7 @@ class Parser
|
|
112
112
|
(?<ht1>\d{1,2}) - (?<ht2>\d{1,2})
|
113
113
|
[ ]* \)
|
114
114
|
)? # note: make half time (HT) score optional for now
|
115
|
-
(?=[
|
115
|
+
(?=[ ,\]]|$)
|
116
116
|
)}ix ## todo/check: remove loakahead assertion here - why require space?
|
117
117
|
## note: \b works only after non-alphanum e.g. )
|
118
118
|
|