Remove 256 character limit from escapeText.
commit2056ab85d2e8fe1b416b39c05d48c19803da15c6
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sat, 21 Jul 2018 09:25:04 +0000 (21 09:25 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sat, 21 Jul 2018 09:25:04 +0000 (21 09:25 +0000)
tree03db7c3c8cd63c66c5fa7bda72b37bdfbe376126
parent1f5f37977cabcb8656749d83a9abe8e58cc687fe
Remove 256 character limit from escapeText.

escapeText was added for the gamesetup and session chat in rP8494,
but the character limit is counterproductive for chatting with more than 2 sentences per line, when displaying a file path or other arbitrary escaped text,
not really an effective measure against lobby spam, nor was that option considered in any of the later calls except rP18534 and
thus more likely to cause unintended than intended code behavior and
should instead be implemented with max_length for input fields and linebreaks and smaller GUI object sizes for displaying, refs #5266.

Remove early returns that are redundant code and require more performance in the average case (non-empty string).

From Differential-Revision: https://code.wildfiregames.com/D720

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@21853 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/gui/common/functions_utility.js
binaries/data/mods/public/gui/session/chat_window.xml