Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #24 from sthadeshwar/master
Browse files Browse the repository at this point in the history
Fixing the runtime error when content is truncated
  • Loading branch information
jamestalmage committed Sep 21, 2016
2 parents 57111ff + 617f9cc commit bbc6d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function truncate(str, desiredLength, truncateChar){
}
desiredLength -= strlen(truncateChar);

ret = truncateWidthWithAnsi(str, desiredLength);
var ret = truncateWidthWithAnsi(str, desiredLength);

return ret + truncateChar;
}
Expand Down

0 comments on commit bbc6d89

Please sign in to comment.