Explorar o código

Fix bug where length was not correctly calculated on string

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
f1c325b3ca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -82,7 +82,7 @@ Vue.filter('stripTags', function (value) {
 });
 
 Vue.filter('truncate', function (value, length) {
-	if(value <= length) {
+	if(value.length <= length) {
 		return value
 	} else {
 		return value.slice(0, length) + '...'