diff --git a/server/src/services/chatService/notifications.js b/server/src/services/chatService/notifications.js index 61f4b9db..ed1faea1 100644 --- a/server/src/services/chatService/notifications.js +++ b/server/src/services/chatService/notifications.js @@ -110,7 +110,7 @@ function maybeSpeak(socket, message, ttsOptions) { issueCommand(message.roverId, { type: 'tts', tts: { - text: message.text, + text: message.text.replace(/\b(?:https?:\/\/|www\.)\S{25,}[^\s.,!?;:"'()\[\]{}]/g, ' [link] '), engine: ttsOptions.engine, voice: ttsOptions.voice, pitch: ttsOptions.pitch,