File tree 2 files changed +5
-8
lines changed
src/main/java/build/buf/protovalidate
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,6 @@ kitchen_sink:
27
27
standard_rules/repeated :
28
28
- items/in/invalid
29
29
- items/not_in/invalid
30
- library/is_ip :
31
- - version/6/invalid/ipv6/7h16_double_colon_1h16
32
- - version/6/invalid/ipv6/7h16_double_colon
33
- - version/6/invalid/ipv6/double_colon_8h16
34
- - version/6/invalid/ipv6/1h16_double_colon_7h16
35
30
standard_rules/well_known_types/duration :
36
31
- in/invalid
37
32
- not in/invalid
38
-
39
-
Original file line number Diff line number Diff line change @@ -209,7 +209,11 @@ private boolean addressPart() {
209
209
break ;
210
210
}
211
211
212
- return this .doubleColonSeen || this .pieces .size () == 8 ;
212
+ int totalPieces = this .pieces .size ();
213
+ if (this .doubleColonSeen ) {
214
+ return totalPieces < 8 ;
215
+ }
216
+ return totalPieces == 8 ;
213
217
}
214
218
215
219
/**
You can’t perform that action at this time.
0 commit comments