diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-06-06 02:31:14 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-06-06 03:09:27 +0000 |
| commit | 8fdcb0fb1c6be75186f553f439604414d6bcf12f (patch) | |
| tree | 08ffca2e5d57a4868af78db73fd5297579106d82 | |
| parent | 88fc8a3412c628263de6cdbbf8159f9b70c0b6bc (diff) | |
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.
| -rw-r--r-- | webAO/packets/handlers/handleCT.ts | 6 |
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; } |
