Updated regex
This commit is contained in:
parent
d5a1264bcb
commit
bba9539229
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ bool Servatrice_DatabaseInterface::execSqlQuery(QSqlQuery *query)
|
||||||
|
|
||||||
bool Servatrice_DatabaseInterface::usernameIsValid(const QString &user)
|
bool Servatrice_DatabaseInterface::usernameIsValid(const QString &user)
|
||||||
{
|
{
|
||||||
static QRegExp re = QRegExp("^[a-zA-Z0-9_\-\.]+$");
|
static QRegExp re = QRegExp("[a-zA-Z0-9_\.-]+");
|
||||||
return re.exactMatch(user);
|
return re.exactMatch(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue