From fcef09f1043f27c97d7b34b4330528f0700662a3 Mon Sep 17 00:00:00 2001 From: "Elizabeth (Lizzy) Hunt" Date: Tue, 7 Nov 2023 13:14:19 -0700 Subject: [PATCH] safe char regex exclusivity --- lib/chessh/ssh/client/trongle_chat.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chessh/ssh/client/trongle_chat.ex b/lib/chessh/ssh/client/trongle_chat.ex index 3ea0d6d..1292fa7 100644 --- a/lib/chessh/ssh/client/trongle_chat.ex +++ b/lib/chessh/ssh/client/trongle_chat.ex @@ -96,7 +96,7 @@ defmodule Chessh.SSH.Client.TrongleChat do height: height } = state ) do - safe_char_regex = ~r/[ A-Za-z0-9._~()'!*:@,;+?-]/ + safe_char_regex = ~r/^[ A-Za-z0-9._~()'!*:@,;+?-]+$/ appended_message_state = case action do