Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrects usage of Trim Prefix/Suffix. #748

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Conversation

plumbis
Copy link
Collaborator

@plumbis plumbis commented Apr 10, 2024

Resolves #747

Signed-off-by: Pete Lumbis <pete@upbound.io>
@plumbis plumbis requested a review from jbw976 April 10, 2024 19:36
Copy link

netlify bot commented Apr 10, 2024

Deploy Preview for crossplane ready!

Name Link
🔨 Latest commit 83f581f
🔍 Latest deploy log https://app.netlify.com/sites/crossplane/deploys/6617ff71126af500088b5be1
😎 Deploy Preview https://deploy-preview-748--crossplane.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 88 (no change from production)
Accessibility: 88 (🔴 down 3 from production)
Best Practices: 83 (no change from production)
SEO: 93 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Pete Lumbis <pete@upbound.io>
@plumbis
Copy link
Collaborator Author

plumbis commented Apr 10, 2024

🤦‍♂️ I fixed it and forgot to add it to the commit. Done.

The {{<hover label="typeRegex" line="8">}}type: TrimSuffix{{</hover>}} removes
the matching string and all proceeding characters.
The {{<hover label="typeTrimS" line="8">}}type: TrimSuffix{{</hover>}} uses
Go's [TrimSuffix](https://pkg.go.dev/strings#TrimPrefix) and removes characters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should link to the TrimSuffix function - i think this problem exists for all versions

Signed-off-by: Pete Lumbis <pete@upbound.io>
Copy link
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good except for the link on the v1.13 page 🙏

content/v1.13/concepts/patch-and-transform.md Outdated Show resolved Hide resolved
Signed-off-by: Pete Lumbis <pete@upbound.io>
Copy link
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, looks good to me now @plumbis!! 💪

@plumbis plumbis merged commit 15ef84b into crossplane:master Apr 11, 2024
7 checks passed
@plumbis plumbis deleted the trim-747 branch April 12, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The descriptions for TrimPrefix and TrimSuffix transforms are not accurate
3 participants