aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webAO/packets/handlers/handleCT.ts6
1 files changed, 1 insertions, 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) => `<a href="${url}" target="_blank">${url}</a>`,
- );
+ return message;
}