Skip to content

Commit 7f1a23a

Browse files
authored
Remove trailing new line from copy text (parse-community#794)
1 parent 52e01b1 commit 7f1a23a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
const text = copyText.textContent || copyText.innerText;
2828

2929
const input = document.createElement('textarea');
30-
input.innerHTML = text;
30+
input.innerHTML = text.replace(/\n$/, '');
3131
document.body.appendChild(input);
3232
input.select();
3333
input.setSelectionRange(0, 99999);

0 commit comments

Comments
 (0)