Skip to content

Commit

Permalink
Update test/helpers.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
  • Loading branch information
2 people authored and tanhauhau committed Apr 14, 2022
1 parent b337e72 commit fbfe910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers.ts
Expand Up @@ -145,7 +145,7 @@ export function normalizeHtml(window, html, { removeDataSvelte = false, preserve
const node = window.document.createElement('div');
node.innerHTML = html
.replace(/(<!--.*?-->)/g, preserveComments ? '$1' : '')
.replace(/(data-svelte="[^"]+")/g, removeDataSvelte ? '': '$1')
.replace(/(data-svelte="[^"]+")/g, removeDataSvelte ? '' : '$1')
.replace(/>[\s\r\n]+</g, '><')
.trim();
cleanChildren(node);
Expand Down

0 comments on commit fbfe910

Please sign in to comment.