Escaped additional punctuation
This commit is contained in:
parent
d76073cdd1
commit
23b163341e
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ bool Servatrice_DatabaseInterface::usernameIsValid(const QString &user)
|
|||
regEx.append("A-Z");
|
||||
if(settingsCache->value("users/allownumerics", true).toBool())
|
||||
regEx.append("0-9");
|
||||
regEx.append(allowedPunctuation);
|
||||
regEx.append(QRegExp::escape(allowedPunctuation));
|
||||
regEx.append("]+");
|
||||
|
||||
static QRegExp re = QRegExp(regEx);
|
||||
|
|
Loading…
Reference in a new issue