From b233d0d94bf8f464da648101d2655fc81f488557 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Fri, 25 Sep 2026 23:28:02 -0400 Subject: [PATCH] fix: paste the clipboard as is for {{CLIPBOARD}}, keeping dollar signs (#31364) --- src/lib/components/channel/MessageInput.svelte | 2 +- src/lib/components/chat/MessageInput.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/channel/MessageInput.svelte b/src/lib/components/channel/MessageInput.svelte index bc7cd1a8de..ff432ae89a 100644 --- a/src/lib/components/channel/MessageInput.svelte +++ b/src/lib/components/channel/MessageInput.svelte @@ -126,7 +126,7 @@ } } - text = text.replaceAll('{{CLIPBOARD}}', clipboardText.replaceAll('\r\n', '\n')); + text = text.replaceAll('{{CLIPBOARD}}', () => clipboardText.replaceAll('\r\n', '\n')); } if (text.includes('{{USER_LOCATION}}')) { diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 02859eb9f4..ec568c9a41 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -305,7 +305,7 @@ } } - text = text.replaceAll('{{CLIPBOARD}}', clipboardText.replaceAll('\r\n', '\n')); + text = text.replaceAll('{{CLIPBOARD}}', () => clipboardText.replaceAll('\r\n', '\n')); } if (text.includes('{{USER_LOCATION}}')) {