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

Truncate at specific character #22

Open
koganei opened this issue Apr 10, 2016 · 0 comments
Open

Truncate at specific character #22

koganei opened this issue Apr 10, 2016 · 0 comments
Assignees

Comments

@koganei
Copy link

koganei commented Apr 10, 2016

Hi guys,

really enjoying your library. I was wondering if it was possible to add a feature where you can truncate at a specific character. Our use-case is a location delimited by slashes like so: Canada/Quebec/Montreal.
We would like to be able to truncate to the closest slash that won't cut off the next word. In our case it would be a left truncation, but either way would be great.
I'm sure there are other use cases where one would want this on spaces or commas specifically so that no word gets cut off halfway.

Let me know if you need more info.

Thanks

@Tuizi Tuizi self-assigned this Apr 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants