Don't insert the non-breaking space when an action starts with an apostrophe.

This commit is contained in:
flash 2024-01-21 16:34:54 +00:00
parent 51694538ff
commit a5843ae71b

View file

@ -118,7 +118,9 @@ Umi.UI.Messages = (function() {
classes.push('message-tiny');
avatarSize = '40';
msgText = "\xA0" + msgText;
if(msgText.indexOf("'") !== 0 || (msgText.match(/\'/g).length % 2) === 0)
msgText = "\xA0" + msgText;
eBase = <div id={`message-${msg.getId()}`} class={classes} style={styles}>
{eAvatar = <div class={avatarClasses}/>}