Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[String] AddtrimSuffix() andtrimPrefix() methods#43481
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedOct 14, 2021
Hey! I think@fancyweb has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
fabpot commentedOct 15, 2021
Thank you@nicolas-grekas. |
javiereguiluz commentedOct 15, 2021
But aren't these very similar (the same?) as the existing methods |
nicolas-grekas commentedOct 15, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
They're not the same: the needle passed to after/before can be found anywhere in the string, not only at the start/end. |
javiereguiluz commentedOct 15, 2021
Ah, that's indeed different. Thanks for the info! |
Inspired by golang's string API.