summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/client/trongle_chat.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chessh/ssh/client/trongle_chat.ex')
-rw-r--r--lib/chessh/ssh/client/trongle_chat.ex2
1 files changed, 1 insertions, 1 deletions
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