Index: ui/webui/resources/js/util.js |
diff --git a/ui/webui/resources/js/util.js b/ui/webui/resources/js/util.js |
index ade780d0cc9fddc8aa715854f485cb8a267b6731..ebcf90c12d5adae6ae4a0cd98df9e1d2abca9d1e 100644 |
--- a/ui/webui/resources/js/util.js |
+++ b/ui/webui/resources/js/util.js |
@@ -401,11 +401,11 @@ function HTMLEscape(original) { |
* @param {string} original The original string. |
* @param {number} maxLength The maximum length allowed for the string. |
* @return {string} The original string if its length does not exceed |
- * |maxLength|. Otherwise the first |maxLength| - 3 characters with '...' |
+ * |maxLength|. Otherwise the first |maxLength| - 1 characters with '...' |
* appended. |
*/ |
function elide(original, maxLength) { |
if (original.length <= maxLength) |
return original; |
- return original.substring(0, maxLength - 3) + '...'; |
+ return original.substring(0, maxLength - 1) + '\u2026'; |
} |