Skip to content

Commit

Permalink
Merge pull request #1084 from Armored-Dragon/fix/Tofu-inArmored-Chat
Browse files Browse the repository at this point in the history
[Armored Chat] Change the 'open in new window' character.
  • Loading branch information
JulianGro authored Sep 2, 2024
2 parents 23c58d5 + c28424e commit 433e2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/communityScripts/armored-chat/armored_chat.qml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ Rectangle {
mess = mess.replace(arrow, "<");

var link = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g;
mess = mess.replace(link, (match) => {return `<a style="color:#4EBAFD" onclick='Window.openUrl("+match+")' href='` + match + `'>` + match + `</a> <a onclick='Window.openUrl(`+match+`)'></a>`});
mess = mess.replace(link, (match) => {return `<a style="color:#4EBAFD" onclick='Window.openUrl("+match+")' href='` + match + `'>` + match + `</a> <a onclick='Window.openUrl(`+match+`)'>🗗</a>`});

var newline = /\n/gi;
mess = mess.replace(newline, "<br>");
Expand Down

0 comments on commit 433e2c0

Please sign in to comment.