Commit bba95392 authored by Matt Lowe's avatar Matt Lowe
Browse files

Updated regex

parent d5a1264b
......@@ -98,7 +98,7 @@ bool Servatrice_DatabaseInterface::execSqlQuery(QSqlQuery *query)
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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment