Skip to content

Commit 546df5b

Browse files
committed
Addressed comments
1 parent 5ccab59 commit 546df5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/utils/dq-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function getSource(element) {
177177
// Remove unwanted attributes
178178
const regex = /\s*data-percy-[^=]+="[^"]*"/g; // Remove unwanted attributes
179179
source = (source || '').replace(regex, '');
180-
const htmlString = truncate(source || '');
180+
const htmlString = truncate(source);
181181
return htmlString;
182182
}
183183

0 commit comments

Comments
 (0)