We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 595842f commit 11316eaCopy full SHA for 11316ea
1 file changed
app/src/boot/globalEvent/click.ts
@@ -66,7 +66,7 @@ export const globalClick = (event: MouseEvent & { target: HTMLElement }) => {
66
}
67
const copyElement = hasTopClosestByClassName(event.target, "protyle-action__copy");
68
if (copyElement) {
69
- let text = copyElement.parentElement.nextElementSibling.textContent.replace("/\n$/", "");
+ let text = copyElement.parentElement.nextElementSibling.textContent.replace(/\n$/, "");
70
text = text.replace(/\u00A0/g, " "); // Replace non-breaking spaces with normal spaces when copying https://github.com/siyuan-note/siyuan/issues/9382
71
writeText(text);
72
showMessage(window.siyuan.languages.copied, 2000);
0 commit comments