summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-24 20:33:42 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-24 20:33:42 +0300
commit46af37490f0beb4c6fa7f40e98ebf0ec52a32410 (patch)
treead12decefd126600b61651e85546c8a48e9c51ae
parentDon't set initial room with an empty room list (diff)
downloadnheko-46af37490f0beb4c6fa7f40e98ebf0ec52a32410.tar.xz
Set allowed TLD size to 63 chars
-rw-r--r--src/InputValidator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/InputValidator.cc b/src/InputValidator.cc
index 7906b570..6ef8f6e5 100644
--- a/src/InputValidator.cc
+++ b/src/InputValidator.cc
@@ -18,7 +18,7 @@
 #include "InputValidator.h"
 
 InputValidator::InputValidator(QObject *parent)
-    : matrix_id_("@[A-Za-z0-9._%+-]+:[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}")
+    : matrix_id_("@[A-Za-z0-9._%+-]+:[A-Za-z0-9.-]{1,126}\\.[A-Za-z]{1,63}")
     , matrix_localpart_("[A-za-z0-9._%+-]{3,}")
     , matrix_password_(".{8,}")
     , server_domain_("(?!\\-)(?:[a-zA-Z\\d\\-]{0,62}[a-zA-Z\\d]\\.){1,126}(?!\\d+)[a-zA-Z\\d]{1,63}")