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
bba95392
Commit
bba95392
authored
Apr 17, 2015
by
Matt Lowe
Browse files
Updated regex
parent
d5a1264b
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/servatrice_database_interface.cpp
View file @
bba95392
...
@@ -98,7 +98,7 @@ bool Servatrice_DatabaseInterface::execSqlQuery(QSqlQuery *query)
...
@@ -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
);
}
}
...
...
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