Skip to content

Commit 11316ea

Browse files
committed
🎨 #13271
1 parent 595842f commit 11316ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/boot/globalEvent/click.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const globalClick = (event: MouseEvent & { target: HTMLElement }) => {
6666
}
6767
const copyElement = hasTopClosestByClassName(event.target, "protyle-action__copy");
6868
if (copyElement) {
69-
let text = copyElement.parentElement.nextElementSibling.textContent.replace("/\n$/", "");
69+
let text = copyElement.parentElement.nextElementSibling.textContent.replace(/\n$/, "");
7070
text = text.replace(/\u00A0/g, " "); // Replace non-breaking spaces with normal spaces when copying https://github.com/siyuan-note/siyuan/issues/9382
7171
writeText(text);
7272
showMessage(window.siyuan.languages.copied, 2000);

0 commit comments

Comments
 (0)