Skip to content

Commit

Permalink
Merge branch 'master' into fix-hover
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgogogo authored May 12, 2023
2 parents 5c6d5d0 + ce9dcab commit 6b98187
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/s2-core/src/utils/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ export const copyToClipboardByClipboard = (data: Copyable): Promise<void> => {
new ClipboardItem(
[].concat(data).reduce((prev, copyable: CopyableItem) => {
const { type, content } = copyable;
// eslint-disable-next-line no-control-regex
const contentToCopy = content.replace(/\x00/g, '');
return {
...prev,
[type]: new Blob([content], { type }),
[type]: new Blob([contentToCopy], { type }),
};
}, {}),
),
Expand Down

0 comments on commit 6b98187

Please sign in to comment.