We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e8b13 commit 335467aCopy full SHA for 335467a
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "vue-truncate-filter",
3
- "version": "1.1.4",
+ "version": "1.1.5",
4
"description": "A filter for VueJs to truncate string",
5
"main": "vue-truncate.js",
6
"repository": {
vue-truncate.js
@@ -16,7 +16,7 @@
16
clamp = clamp || '...';
17
length = length || 30;
18
19
- if (text.length < length) return text;
+ if (text.length <= length) return text;
20
21
var tcText = text.slice(0, length - clamp.length);
22
var last = tcText.length - 1;
0 commit comments