sgx_jmp.rb 🔗
@@ -904,7 +904,7 @@ Command.new(
}.then do |iq|
jid = iq.form.field("jid")&.value.to_s.strip
tel = iq.form.field("tel")&.value.to_s.strip
- if jid !~ /\./
+ if jid !~ /\./ || jid =~ /\s/
Command.finish("The Jabber ID you entered was not valid.", type: :error)
elsif tel !~ /\A\+\d+\Z/
Command.finish("Invalid telephone number", type: :error)