summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth (Lizzy) Hunt <elizabeth.hunt@simponic.xyz>2023-11-07 13:14:19 -0700
committerGitHub <noreply@github.com>2023-11-07 13:14:19 -0700
commitfcef09f1043f27c97d7b34b4330528f0700662a3 (patch)
tree1b6398e2ae2976be402751cd7d74b9dd8e903a46
parent9e5682ca437aaef112948d6f003c38eebcebbdd4 (diff)
downloadchessh-fcef09f1043f27c97d7b34b4330528f0700662a3.tar.gz
chessh-fcef09f1043f27c97d7b34b4330528f0700662a3.zip
safe char regex exclusivity
-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