mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Set allowed TLD size to 63 chars
This commit is contained in:
parent
9d9b5e4f68
commit
46af37490f
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
#include "InputValidator.h"
|
#include "InputValidator.h"
|
||||||
|
|
||||||
InputValidator::InputValidator(QObject *parent)
|
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_localpart_("[A-za-z0-9._%+-]{3,}")
|
||||||
, matrix_password_(".{8,}")
|
, matrix_password_(".{8,}")
|
||||||
, server_domain_("(?!\\-)(?:[a-zA-Z\\d\\-]{0,62}[a-zA-Z\\d]\\.){1,126}(?!\\d+)[a-zA-Z\\d]{1,63}")
|
, server_domain_("(?!\\-)(?:[a-zA-Z\\d\\-]{0,62}[a-zA-Z\\d]\\.){1,126}(?!\\d+)[a-zA-Z\\d]{1,63}")
|
||||||
|
|
Loading…
Reference in a new issue