We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5990ed9 commit 311e92dCopy full SHA for 311e92d
react/MidEllipsis/index.jsx
@@ -25,8 +25,8 @@ const MidEllipsis = forwardRef(
25
const str = text || children
26
27
const partLength = Math.round(str.length / 2)
28
- const firstPart = str.substring(0, partLength).trim()
29
- const lastPart = str.substring(partLength, str.length).trim()
+ const firstPart = str.substring(0, partLength)
+ const lastPart = str.substring(partLength, str.length)
30
31
return (
32
<div className={cx('u-midellipsis', className)} ref={ref} {...props}>
0 commit comments