We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d021e34 commit 05b937bCopy full SHA for 05b937b
1 file changed
lib/core/utils/dq-element.js
@@ -256,10 +256,10 @@ function getSource(element) {
256
return '';
257
}
258
259
- let htmlString = truncateElement(element);
260
// a11y-engine changes
261
const regex = /\s*data-percy-[^=]+="[^"]*"/g;
262
- htmlString = htmlString.replace(regex, '');
+ let htmlString = htmlString.replace(regex, '');
+ htmlString = truncateElement(element);
263
return htmlString;
264
265
0 commit comments