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;