mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
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");
|
regEx.append("A-Z");
|
||||||
if(settingsCache->value("users/allownumerics", true).toBool())
|
if(settingsCache->value("users/allownumerics", true).toBool())
|
||||||
regEx.append("0-9");
|
regEx.append("0-9");
|
||||||
regEx.append(allowedPunctuation);
|
regEx.append(QRegExp::escape(allowedPunctuation));
|
||||||
regEx.append("]+");
|
regEx.append("]+");
|
||||||
|
|
||||||
static QRegExp re = QRegExp(regEx);
|
static QRegExp re = QRegExp(regEx);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue