File tree Expand file tree Collapse file tree 4 files changed +32
-24
lines changed Expand file tree Collapse file tree 4 files changed +32
-24
lines changed Original file line number Diff line number Diff line change @@ -1629,10 +1629,11 @@ patches:
1629
1629
1630
1630
# ### Trim prefix
1631
1631
1632
- The {{<hover label="typeRegex" line="8">}}type : TrimPrefix{{</hover>}} removes
1633
- the matching string and all preceding characters.
1632
+ The {{<hover label="typeTrimP" line="8">}}type : TrimPrefix{{</hover>}} uses
1633
+ Go's [TrimPrefix](https://pkg.go.dev/strings#TrimPrefix) and removes characters
1634
+ from the beginning of a line.
1634
1635
1635
- ` ` ` yaml {label="typeRegex "}
1636
+ ` ` ` yaml {label="typeTrimP "}
1636
1637
patches:
1637
1638
- type: FromCompositeFieldPath
1638
1639
fromFieldPath: spec.desiredRegion
@@ -1646,10 +1647,11 @@ patches:
1646
1647
1647
1648
#### Trim suffix
1648
1649
1649
- The {{<hover label =" typeRegex " line =" 8 " >}}type: TrimSuffix{{</hover >}} removes
1650
- the matching string and all proceeding characters.
1650
+ The {{<hover label =" typeTrimS " line =" 8 " >}}type: TrimSuffix{{</hover >}} uses
1651
+ Go's [ TrimSuffix] ( https://pkg.go.dev/strings#TrimSuffix ) and removes characters
1652
+ from the end of a line.
1651
1653
1652
- ``` yaml {label="typeRegex "}
1654
+ ``` yaml {label="typeTrimS "}
1653
1655
patches :
1654
1656
- type : FromCompositeFieldPath
1655
1657
fromFieldPath : spec.desiredRegion
Original file line number Diff line number Diff line change @@ -1554,10 +1554,11 @@ patches:
1554
1554
1555
1555
# ### Trim prefix
1556
1556
1557
- The {{<hover label="typeRegex" line="8">}}type : TrimPrefix{{</hover>}} removes
1558
- the matching string and all preceding characters.
1557
+ The {{<hover label="typeTrimP" line="8">}}type : TrimPrefix{{</hover>}} uses
1558
+ Go's [TrimPrefix](https://pkg.go.dev/strings#TrimPrefix) and removes characters
1559
+ from the beginning of a line.
1559
1560
1560
- ` ` ` yaml {label="typeRegex "}
1561
+ ` ` ` yaml {label="typeTrimP "}
1561
1562
patches:
1562
1563
- type: FromCompositeFieldPath
1563
1564
fromFieldPath: spec.desiredRegion
@@ -1571,10 +1572,11 @@ patches:
1571
1572
1572
1573
#### Trim suffix
1573
1574
1574
- The {{<hover label =" typeRegex " line =" 8 " >}}type: TrimSuffix{{</hover >}} removes
1575
- the matching string and all proceeding characters.
1575
+ The {{<hover label =" typeTrimS " line =" 8 " >}}type: TrimSuffix{{</hover >}} uses
1576
+ Go's [ TrimSuffix] ( https://pkg.go.dev/strings#TrimSuffix ) and removes characters
1577
+ from the end of a line.
1576
1578
1577
- ``` yaml {label="typeRegex "}
1579
+ ``` yaml {label="typeTrimS "}
1578
1580
patches :
1579
1581
- type : FromCompositeFieldPath
1580
1582
fromFieldPath : spec.desiredRegion
Original file line number Diff line number Diff line change @@ -1609,10 +1609,11 @@ patches:
1609
1609
1610
1610
# ### Trim prefix
1611
1611
1612
- The {{<hover label="typeRegex" line="8">}}type : TrimPrefix{{</hover>}} removes
1613
- the matching string and all preceding characters.
1612
+ The {{<hover label="typeTrimP" line="8">}}type : TrimPrefix{{</hover>}} uses
1613
+ Go's [TrimPrefix](https://pkg.go.dev/strings#TrimPrefix) and removes characters
1614
+ from the beginning of a line.
1614
1615
1615
- ` ` ` yaml {label="typeRegex "}
1616
+ ` ` ` yaml {label="typeTrimP "}
1616
1617
patches:
1617
1618
- type: FromCompositeFieldPath
1618
1619
fromFieldPath: spec.desiredRegion
@@ -1626,10 +1627,11 @@ patches:
1626
1627
1627
1628
#### Trim suffix
1628
1629
1629
- The {{<hover label =" typeRegex " line =" 8 " >}}type: TrimSuffix{{</hover >}} removes
1630
- the matching string and all proceeding characters.
1630
+ The {{<hover label =" typeTrimS " line =" 8 " >}}type: TrimSuffix{{</hover >}} uses
1631
+ Go's [ TrimSuffix] ( https://pkg.go.dev/strings#TrimSuffix ) and removes characters
1632
+ from the end of a line.
1631
1633
1632
- ``` yaml {label="typeRegex "}
1634
+ ``` yaml {label="typeTrimS "}
1633
1635
patches :
1634
1636
- type : FromCompositeFieldPath
1635
1637
fromFieldPath : spec.desiredRegion
Original file line number Diff line number Diff line change @@ -1629,10 +1629,11 @@ patches:
1629
1629
1630
1630
# ### Trim prefix
1631
1631
1632
- The {{<hover label="typeRegex" line="8">}}type : TrimPrefix{{</hover>}} removes
1633
- the matching string and all preceding characters.
1632
+ The {{<hover label="typeTrimP" line="8">}}type : TrimPrefix{{</hover>}} uses
1633
+ Go's [TrimPrefix](https://pkg.go.dev/strings#TrimPrefix) and removes characters
1634
+ from the beginning of a line.
1634
1635
1635
- ` ` ` yaml {label="typeRegex "}
1636
+ ` ` ` yaml {label="typeTrimP "}
1636
1637
patches:
1637
1638
- type: FromCompositeFieldPath
1638
1639
fromFieldPath: spec.desiredRegion
@@ -1646,10 +1647,11 @@ patches:
1646
1647
1647
1648
#### Trim suffix
1648
1649
1649
- The {{<hover label =" typeRegex " line =" 8 " >}}type: TrimSuffix{{</hover >}} removes
1650
- the matching string and all proceeding characters.
1650
+ The {{<hover label =" typeTrimS " line =" 8 " >}}type: TrimSuffix{{</hover >}} uses
1651
+ Go's [ TrimSuffix] ( https://pkg.go.dev/strings#TrimSuffix ) and removes characters
1652
+ from the end of a line.
1651
1653
1652
- ``` yaml {label="typeRegex "}
1654
+ ``` yaml {label="typeTrimS "}
1653
1655
patches :
1654
1656
- type : FromCompositeFieldPath
1655
1657
fromFieldPath : spec.desiredRegion
You can’t perform that action at this time.
0 commit comments