From 8fdcb0fb1c6be75186f553f439604414d6bcf12f Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Sat, 6 Jun 2026 02:31:14 +0000 Subject: Replace addLinks with a stub implementation Turn it into the identity function because I completely messed up the URL highlighting due to replacing the OOC chat lines with plain text rather than them getting appended to the inner HTML. --- webAO/packets/handlers/handleCT.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/webAO/packets/handlers/handleCT.ts b/webAO/packets/handlers/handleCT.ts index 4f2857e..b907dcb 100644 --- a/webAO/packets/handlers/handleCT.ts +++ b/webAO/packets/handlers/handleCT.ts @@ -23,9 +23,5 @@ export const handleCT = (args: string[]) => { // If the incoming message contains a link, add a href hyperlink to it function addLinks(message: string) { - const urlRegex = /(https?:\/\/[^\s]+)/g; - return message.replace( - urlRegex, - (url) => `${url}`, - ); + return message; } -- cgit