mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Merge pull request #236 from tctara/patch-1
Modify Hostname input validation to accept number as first character
This commit is contained in:
commit
757a5b48eb
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ private:
|
|||
Ui::Page_UserSetup* ui;
|
||||
|
||||
const QRegExp USERNAME_RX = QRegExp( "^[a-z_][a-z0-9_-]*[$]?$" );
|
||||
const QRegExp HOSTNAME_RX = QRegExp( "^[a-zA-Z][-a-zA-Z0-9_]*$" );
|
||||
const QRegExp HOSTNAME_RX = QRegExp( "^[a-zA-Z0-9][-a-zA-Z0-9_]*$" );
|
||||
const int USERNAME_MAX_LENGTH = 31;
|
||||
const int HOSTNAME_MIN_LENGTH = 2;
|
||||
const int HOSTNAME_MAX_LENGTH = 24;
|
||||
|
|
Loading…
Add table
Reference in a new issue