From e8ebe776ba63bb06d9203484b65bf7a46149a758 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 30 Mar 2021 19:54:29 +0200 Subject: [PATCH] Remove/replace nbsp when copying code to the clipboard --- wcfsetup/install/files/js/WoltLabSuite/Core/Clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Clipboard.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Clipboard.js index fc35381cc8..592988e0d3 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Clipboard.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Clipboard.js @@ -60,7 +60,7 @@ define(['Environment', 'Ui/Screen'], function(Environment, UiScreen) { }, copyElementTextToClipboard: function (element) { - return this.copyTextToClipboard(element.textContent); + return this.copyTextToClipboard(element.textContent.replace(/\u200B/g, '').replace(/\u00A0/g, ' ')); } }; }); -- 2.20.1