diff --git a/package.json b/package.json index fb9b247..c19fffa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-truncate-filter", - "version": "1.1.4", + "version": "1.1.5", "description": "A filter for VueJs to truncate string", "main": "vue-truncate.js", "repository": { diff --git a/vue-truncate.js b/vue-truncate.js index e5abfd0..ed80bf4 100644 --- a/vue-truncate.js +++ b/vue-truncate.js @@ -16,7 +16,7 @@ clamp = clamp || '...'; length = length || 30; - if (text.length < length) return text; + if (text.length <= length) return text; var tcText = text.slice(0, length - clamp.length); var last = tcText.length - 1;