@@ -784,7 +784,7 @@ extension Repeat {
784
784
_ component: Component ,
785
785
count: Int
786
786
) where RegexOutput == Substring {
787
- assert ( count > 0 , " Must specify a positive count " )
787
+ precondition ( count >= 0 , " Must specify a positive count " )
788
788
let factory = makeFactory ( )
789
789
self . init ( factory. exactly ( count, component) )
790
790
}
@@ -795,7 +795,7 @@ extension Repeat {
795
795
count: Int ,
796
796
@RegexComponentBuilder _ component: ( ) -> Component
797
797
) where RegexOutput == Substring {
798
- assert ( count > 0 , " Must specify a positive count " )
798
+ precondition ( count >= 0 , " Must specify a positive count " )
799
799
let factory = makeFactory ( )
800
800
self . init ( factory. exactly ( count, component ( ) ) )
801
801
}
@@ -913,7 +913,7 @@ extension Repeat {
913
913
_ component: Component ,
914
914
count: Int
915
915
) where RegexOutput == ( Substring , C1 ? ) , Component. RegexOutput == ( W , C1 ) {
916
- assert ( count > 0 , " Must specify a positive count " )
916
+ precondition ( count >= 0 , " Must specify a positive count " )
917
917
let factory = makeFactory ( )
918
918
self . init ( factory. exactly ( count, component) )
919
919
}
@@ -923,7 +923,7 @@ extension Repeat {
923
923
count: Int ,
924
924
@RegexComponentBuilder _ component: ( ) -> Component
925
925
) where RegexOutput == ( Substring , C1 ? ) , Component. RegexOutput == ( W , C1 ) {
926
- assert ( count > 0 , " Must specify a positive count " )
926
+ precondition ( count >= 0 , " Must specify a positive count " )
927
927
let factory = makeFactory ( )
928
928
self . init ( factory. exactly ( count, component ( ) ) )
929
929
}
@@ -1039,7 +1039,7 @@ extension Repeat {
1039
1039
_ component: Component ,
1040
1040
count: Int
1041
1041
) where RegexOutput == ( Substring , C1 ? , C2 ? ) , Component. RegexOutput == ( W , C1 , C2 ) {
1042
- assert ( count > 0 , " Must specify a positive count " )
1042
+ precondition ( count >= 0 , " Must specify a positive count " )
1043
1043
let factory = makeFactory ( )
1044
1044
self . init ( factory. exactly ( count, component) )
1045
1045
}
@@ -1049,7 +1049,7 @@ extension Repeat {
1049
1049
count: Int ,
1050
1050
@RegexComponentBuilder _ component: ( ) -> Component
1051
1051
) where RegexOutput == ( Substring , C1 ? , C2 ? ) , Component. RegexOutput == ( W , C1 , C2 ) {
1052
- assert ( count > 0 , " Must specify a positive count " )
1052
+ precondition ( count >= 0 , " Must specify a positive count " )
1053
1053
let factory = makeFactory ( )
1054
1054
self . init ( factory. exactly ( count, component ( ) ) )
1055
1055
}
@@ -1165,7 +1165,7 @@ extension Repeat {
1165
1165
_ component: Component ,
1166
1166
count: Int
1167
1167
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 ) {
1168
- assert ( count > 0 , " Must specify a positive count " )
1168
+ precondition ( count >= 0 , " Must specify a positive count " )
1169
1169
let factory = makeFactory ( )
1170
1170
self . init ( factory. exactly ( count, component) )
1171
1171
}
@@ -1175,7 +1175,7 @@ extension Repeat {
1175
1175
count: Int ,
1176
1176
@RegexComponentBuilder _ component: ( ) -> Component
1177
1177
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 ) {
1178
- assert ( count > 0 , " Must specify a positive count " )
1178
+ precondition ( count >= 0 , " Must specify a positive count " )
1179
1179
let factory = makeFactory ( )
1180
1180
self . init ( factory. exactly ( count, component ( ) ) )
1181
1181
}
@@ -1291,7 +1291,7 @@ extension Repeat {
1291
1291
_ component: Component ,
1292
1292
count: Int
1293
1293
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 ) {
1294
- assert ( count > 0 , " Must specify a positive count " )
1294
+ precondition ( count >= 0 , " Must specify a positive count " )
1295
1295
let factory = makeFactory ( )
1296
1296
self . init ( factory. exactly ( count, component) )
1297
1297
}
@@ -1301,7 +1301,7 @@ extension Repeat {
1301
1301
count: Int ,
1302
1302
@RegexComponentBuilder _ component: ( ) -> Component
1303
1303
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 ) {
1304
- assert ( count > 0 , " Must specify a positive count " )
1304
+ precondition ( count >= 0 , " Must specify a positive count " )
1305
1305
let factory = makeFactory ( )
1306
1306
self . init ( factory. exactly ( count, component ( ) ) )
1307
1307
}
@@ -1417,7 +1417,7 @@ extension Repeat {
1417
1417
_ component: Component ,
1418
1418
count: Int
1419
1419
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 ) {
1420
- assert ( count > 0 , " Must specify a positive count " )
1420
+ precondition ( count >= 0 , " Must specify a positive count " )
1421
1421
let factory = makeFactory ( )
1422
1422
self . init ( factory. exactly ( count, component) )
1423
1423
}
@@ -1427,7 +1427,7 @@ extension Repeat {
1427
1427
count: Int ,
1428
1428
@RegexComponentBuilder _ component: ( ) -> Component
1429
1429
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 ) {
1430
- assert ( count > 0 , " Must specify a positive count " )
1430
+ precondition ( count >= 0 , " Must specify a positive count " )
1431
1431
let factory = makeFactory ( )
1432
1432
self . init ( factory. exactly ( count, component ( ) ) )
1433
1433
}
@@ -1543,7 +1543,7 @@ extension Repeat {
1543
1543
_ component: Component ,
1544
1544
count: Int
1545
1545
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 ) {
1546
- assert ( count > 0 , " Must specify a positive count " )
1546
+ precondition ( count >= 0 , " Must specify a positive count " )
1547
1547
let factory = makeFactory ( )
1548
1548
self . init ( factory. exactly ( count, component) )
1549
1549
}
@@ -1553,7 +1553,7 @@ extension Repeat {
1553
1553
count: Int ,
1554
1554
@RegexComponentBuilder _ component: ( ) -> Component
1555
1555
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 ) {
1556
- assert ( count > 0 , " Must specify a positive count " )
1556
+ precondition ( count >= 0 , " Must specify a positive count " )
1557
1557
let factory = makeFactory ( )
1558
1558
self . init ( factory. exactly ( count, component ( ) ) )
1559
1559
}
@@ -1669,7 +1669,7 @@ extension Repeat {
1669
1669
_ component: Component ,
1670
1670
count: Int
1671
1671
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? , C7 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
1672
- assert ( count > 0 , " Must specify a positive count " )
1672
+ precondition ( count >= 0 , " Must specify a positive count " )
1673
1673
let factory = makeFactory ( )
1674
1674
self . init ( factory. exactly ( count, component) )
1675
1675
}
@@ -1679,7 +1679,7 @@ extension Repeat {
1679
1679
count: Int ,
1680
1680
@RegexComponentBuilder _ component: ( ) -> Component
1681
1681
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? , C7 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 , C7 ) {
1682
- assert ( count > 0 , " Must specify a positive count " )
1682
+ precondition ( count >= 0 , " Must specify a positive count " )
1683
1683
let factory = makeFactory ( )
1684
1684
self . init ( factory. exactly ( count, component ( ) ) )
1685
1685
}
@@ -1795,7 +1795,7 @@ extension Repeat {
1795
1795
_ component: Component ,
1796
1796
count: Int
1797
1797
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? , C7 ? , C8 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
1798
- assert ( count > 0 , " Must specify a positive count " )
1798
+ precondition ( count >= 0 , " Must specify a positive count " )
1799
1799
let factory = makeFactory ( )
1800
1800
self . init ( factory. exactly ( count, component) )
1801
1801
}
@@ -1805,7 +1805,7 @@ extension Repeat {
1805
1805
count: Int ,
1806
1806
@RegexComponentBuilder _ component: ( ) -> Component
1807
1807
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? , C7 ? , C8 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 ) {
1808
- assert ( count > 0 , " Must specify a positive count " )
1808
+ precondition ( count >= 0 , " Must specify a positive count " )
1809
1809
let factory = makeFactory ( )
1810
1810
self . init ( factory. exactly ( count, component ( ) ) )
1811
1811
}
@@ -1921,7 +1921,7 @@ extension Repeat {
1921
1921
_ component: Component ,
1922
1922
count: Int
1923
1923
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? , C7 ? , C8 ? , C9 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 ) {
1924
- assert ( count > 0 , " Must specify a positive count " )
1924
+ precondition ( count >= 0 , " Must specify a positive count " )
1925
1925
let factory = makeFactory ( )
1926
1926
self . init ( factory. exactly ( count, component) )
1927
1927
}
@@ -1931,7 +1931,7 @@ extension Repeat {
1931
1931
count: Int ,
1932
1932
@RegexComponentBuilder _ component: ( ) -> Component
1933
1933
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? , C7 ? , C8 ? , C9 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 ) {
1934
- assert ( count > 0 , " Must specify a positive count " )
1934
+ precondition ( count >= 0 , " Must specify a positive count " )
1935
1935
let factory = makeFactory ( )
1936
1936
self . init ( factory. exactly ( count, component ( ) ) )
1937
1937
}
@@ -2047,7 +2047,7 @@ extension Repeat {
2047
2047
_ component: Component ,
2048
2048
count: Int
2049
2049
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? , C7 ? , C8 ? , C9 ? , C10 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 , C10 ) {
2050
- assert ( count > 0 , " Must specify a positive count " )
2050
+ precondition ( count >= 0 , " Must specify a positive count " )
2051
2051
let factory = makeFactory ( )
2052
2052
self . init ( factory. exactly ( count, component) )
2053
2053
}
@@ -2057,7 +2057,7 @@ extension Repeat {
2057
2057
count: Int ,
2058
2058
@RegexComponentBuilder _ component: ( ) -> Component
2059
2059
) where RegexOutput == ( Substring , C1 ? , C2 ? , C3 ? , C4 ? , C5 ? , C6 ? , C7 ? , C8 ? , C9 ? , C10 ? ) , Component. RegexOutput == ( W , C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 , C9 , C10 ) {
2060
- assert ( count > 0 , " Must specify a positive count " )
2060
+ precondition ( count >= 0 , " Must specify a positive count " )
2061
2061
let factory = makeFactory ( )
2062
2062
self . init ( factory. exactly ( count, component ( ) ) )
2063
2063
}
0 commit comments