-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Optionally prevent the removal of the delimeter at the beginning and end. #34
Comments
Any progress on this? it would be very nice to have this option. I really need it. The capability to override method |
@Rumi-Aguirre can you describe your use case in detail? Maybe with some examples? |
Sure!
assuming that delimiter is a dash "-" |
so the behavior in the beginning of the string should be different than at the end of the string? |
In this particular example I want to remove from begining but keep at the end but It would be nice if this behavior can be configured the same way that options like "delimiter" or "validChars". So can decide if want to trim the char just from beginning, from the end, from both or none to cover all use cases. |
I've made a PR to solve this scenario. It would be great if you can check it :D |
Currently, the delimeter is removed at the beginning and end of a string. However, there are usecases where this is not desired, e.g. when only parts of a string are converted.
perhaps one could include a parameter like
['reciveDelimiter' => true]
The text was updated successfully, but these errors were encountered: