From dc945f6b81fa075efd13e4945586f27f88772058 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Sun, 2 Jun 2019 10:06:05 -0700 Subject: [PATCH] Fixed a typo in string truncation util --- src/devtools/views/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devtools/views/utils.js b/src/devtools/views/utils.js index c04f8bddd1..882a1a0ee2 100644 --- a/src/devtools/views/utils.js +++ b/src/devtools/views/utils.js @@ -177,7 +177,7 @@ export function truncateText(text: string, maxLength: number): string { return ( text.substr(0, Math.floor(maxLength / 2)) + '…' + - text.substr(length - Math.ceil(maxLength / 2) + 1) + text.substr(length - Math.ceil(maxLength / 2) - 1) ); } else { return text;