Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
23b16334
Commit
23b16334
authored
Jun 24, 2015
by
Matt Lowe
Browse files
Escaped additional punctuation
parent
d76073cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/servatrice_database_interface.cpp
View file @
23b16334
...
@@ -137,7 +137,7 @@ bool Servatrice_DatabaseInterface::usernameIsValid(const QString &user)
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment