From 06f4550e55acf3b4b0c3f966d2bca3498eeff3b2 Mon Sep 17 00:00:00 2001 From: Armored Dragon Date: Sat, 13 Jul 2024 14:38:56 -0500 Subject: [PATCH] Hardcode link colorization. Signed-off-by: Armored Dragon --- scripts/communityScripts/armored-chat/armored_chat.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/communityScripts/armored-chat/armored_chat.qml b/scripts/communityScripts/armored-chat/armored_chat.qml index 13506c226a..ede60fca71 100644 --- a/scripts/communityScripts/armored-chat/armored_chat.qml +++ b/scripts/communityScripts/armored-chat/armored_chat.qml @@ -510,7 +510,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 "" + match + " "}); + mess = mess.replace(link, (match) => {return `` + match + ` `}); var newline = /\n/gi; mess = mess.replace(newline, "
");