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: fixes handling strings shorter than truncate length #5

Merged
merged 1 commit into from
Nov 4, 2015

Conversation

amejiarosario
Copy link
Contributor

With this fix the function truncate is more generic. It handles cases when the string length is shorter than the truncate length in that case omission characters should not be added since they are displaying in full.

fixes handling strings shorter than truncate length

With this fix the function truncate is more generic. It handles cases
when the string length is shorter than the truncate length in that case
omission characters should not be added since they are displaying in
full.
@amejiarosario amejiarosario force-pushed the truncate-short-strings branch from fe349c2 to 34c0023 Compare November 4, 2015 16:02
tommy351 added a commit that referenced this pull request Nov 4, 2015
truncate: fixes handling strings shorter than truncate length
@tommy351 tommy351 merged commit d3bbf15 into hexojs:master Nov 4, 2015
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.

2 participants