Fixed a typo in string truncation util
Brian Vaughn committed
Jun 2, 2019 at 10:06 UTC
dc945f6b81fa075efd13e4945586f27f88772058
1 file changed
+1
-1
src/devtools/views/utils.js
+1
-1
@@ -177,7 +177,7 @@ export function truncateText(text: string, maxLength: number): string {
177
return (
178
text.substr(0, Math.floor(maxLength / 2)) +
179
'…' +
180
- text.substr(length - Math.ceil(maxLength / 2) + 1)
180
+ text.substr(length - Math.ceil(maxLength / 2) - 1)
181
);
182
} else {
183
return text;