We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e11a3 commit 616df62Copy full SHA for 616df62
source/javascripts/app/_copy.js
@@ -1,6 +1,6 @@
1
function copyToClipboard(container) {
2
const el = document.createElement('textarea');
3
- el.value = container.textContent;
+ el.value = container.textContent.replace(/\n$/, '');
4
document.body.appendChild(el);
5
el.select();
6
document.execCommand('copy');
0 commit comments