diff options
author | Elizabeth (Lizzy) Hunt <elizabeth.hunt@simponic.xyz> | 2023-11-07 13:14:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 13:14:19 -0700 |
commit | fcef09f1043f27c97d7b34b4330528f0700662a3 (patch) | |
tree | 1b6398e2ae2976be402751cd7d74b9dd8e903a46 | |
parent | 9e5682ca437aaef112948d6f003c38eebcebbdd4 (diff) | |
download | chessh-fcef09f1043f27c97d7b34b4330528f0700662a3.tar.gz chessh-fcef09f1043f27c97d7b34b4330528f0700662a3.zip |
safe char regex exclusivity
-rw-r--r-- | lib/chessh/ssh/client/trongle_chat.ex | 2 |
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 |