Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ function sanitizeForXml(content) {

// Remove invalid XML control characters (0x00-0x1F except 0x09, 0x0A, 0x0D)
// Also remove 0x7F (DEL) which is technically invalid in XML 1.0
// eslint-disable-next-line no-control-regex
return content.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, '');
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/api/copy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('copy()', () => {
expect(result.stats).toHaveProperty('totalSize');
expect(result.stats).toHaveProperty('outputSize');
expect(result.stats.totalFiles).toBeGreaterThan(0);
expect(result.stats.duration).toBeGreaterThan(0);
expect(result.stats.duration).toBeGreaterThanOrEqual(0);
});
});

Expand Down
Loading