Skip to content

Commit

Permalink
test: replace unicode replacement character in snapshots (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
karfau authored Dec 5, 2024
1 parent ea15691 commit 1f447a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion xmltest.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,10 @@ const replaceNonTextChars = (value, wrapper = replaceWithWrappedCodePointAt) =>
? value
: value
.toString()
.replace(/[\u0000\u001B\u001F\uDC00\uD800\uFFFE\uFFFF]/gu, wrapper);
.replace(
/[\u0000\u001B\u001F\uDC00\uD800\uFFFD\uFFFE\uFFFF]/gu,
wrapper,
);

module.exports = {
combineFilters,
Expand Down

0 comments on commit 1f447a1

Please sign in to comment.