Skip to content

Commit 9629adb

Browse files
committed
made spacing logic consistent
1 parent 45d1f18 commit 9629adb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/core/utils/dq-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function truncateElement(element, maxLength, maxAttributeLength) {
7171
}
7272

7373
if (currElementStr.indexOf('>') > maxLength) {
74-
currElementStr = currElementStr.substring(0, maxLength) + ' ...>';
74+
currElementStr = currElementStr.substring(0, maxLength) + '...>';
7575
}
7676

7777
if (currElementStr.length > maxLength) {

test/core/utils/dq-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe('DqElement', () => {
9191
const result = new DqElement(vNode);
9292
assert.equal(
9393
result.source,
94-
`<div id="target" attribute="value" attribute1="value1" attribute22="value22" attribute333="value333" ...>`
94+
`<div id="target" attribute="value" attribute1="value1" attribute22="value22" attribute333="value333"...>`
9595
);
9696
});
9797

0 commit comments

Comments
 (0)