Skip to content

Commit 05b937b

Browse files
merge confict from main
1 parent d021e34 commit 05b937b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/utils/dq-element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ function getSource(element) {
256256
return '';
257257
}
258258

259-
let htmlString = truncateElement(element);
260259
// a11y-engine changes
261260
const regex = /\s*data-percy-[^=]+="[^"]*"/g;
262-
htmlString = htmlString.replace(regex, '');
261+
let htmlString = htmlString.replace(regex, '');
262+
htmlString = truncateElement(element);
263263
return htmlString;
264264
}
265265

0 commit comments

Comments
 (0)