Skip to content

Commit

Permalink
Merge pull request #16 from thenextweb/word-count
Browse files Browse the repository at this point in the history
Word count
  • Loading branch information
Laura González authored Jan 17, 2017
2 parents a07f446 + 4b9ef70 commit 7ef4ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "indexdotco-js",
"version": "1.4.1",
"version": "1.4.2",
"description": "Javascript plugin for Index.co embeds",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/element/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Card extends AbstractElement {
lastHeight = $taglineTextDiv[0].offsetHeight;
}
if(lines > settings.maxLines) {
words = words -1;
words = words - 2;
break;
}
}
Expand Down

0 comments on commit 7ef4ef1

Please sign in to comment.