From 0a00efbd76664bc9ed0e720ec88245e71da39b56 Mon Sep 17 00:00:00 2001 From: Adriano de Souza Date: Thu, 26 Oct 2017 14:09:32 -0200 Subject: [PATCH] Changing the character to be compatible with other encode Changing the character to be compatible with ISO-8859-1 --- src/truncate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/truncate.js b/src/truncate.js index da77562..6c473b9 100644 --- a/src/truncate.js +++ b/src/truncate.js @@ -17,7 +17,7 @@ angular.module('truncate', []) input = input.substr(0, input.length -1); } } - return input + '…'; + return input + '...'; } return input; }; @@ -41,7 +41,7 @@ angular.module('truncate', []) if (input) { var inputWords = input.split(/\s+/); if (inputWords.length > words) { - input = inputWords.slice(0, words).join(' ') + '…'; + input = inputWords.slice(0, words).join(' ') + '...'; } } return input;