From: Alexander Ebert Date: Thu, 27 Jun 2013 20:06:58 +0000 (+0200) Subject: Improved normalization of selected text X-Git-Tag: 2.0.0_Beta_5~118^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7877da8735c12267f4e5f088e4beccc1bc4bf846;p=GitHub%2FWoltLab%2FWCF.git Improved normalization of selected text --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index a50abce16b..0ecf4670c1 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -1820,7 +1820,7 @@ WCF.Message.Quote.Handler = Class.extend({ * @return string */ _normalize: function(text) { - return text.replace(/\r?\n|\r/g, "\n").replace(/\s{2,}/g, ' '); + return text.replace(/\r?\n|\r/g, "\n").replace(/\s/g, ' ').replace(/\s{2,}/g, ' '); }, /**