Skip to content

Commit

Permalink
Implement #42 Reverse "agreement" symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
Glodenox committed Nov 13, 2023
1 parent 5eaff3d commit 8611146
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,10 @@ As a last step, all entries in the array with 1 character are transformed into H
At the end, we join() the character array again, forming a message safe to assign to the innerHTML property.
*/
function formatMessage(text, emotes) {
var message = text.split('');
if (Settings.get('new-messages-on-top')) {
text = text.replaceAll('^', '⌄');
}
let message = text.split('');
message = formatEmotes(message, emotes);
message = formatLinks(message, text);
return htmlEntities(message).join('');
Expand Down

0 comments on commit 8611146

Please sign in to comment.