Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions application/widgets/customcontrol/passwordinputdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ void PasswordInputDialog::initUi()
// 限制中文和中文字符
#if QT_VERSION_MAJOR > 5
qCDebug(appLog) << "QT_VERSION_MAJOR > 5, setting regular expression validator";
QRegularExpression regExp("^[A-Za-z0-9`~!@#$%^&*()_-+=<>,.\\/ ]+$");
QRegularExpression regExp("^[A-Za-z0-9`~!@#$%^&*()_+=<>,.\\/ -]+$");
QRegularExpressionValidator *regExpValidator = new QRegularExpressionValidator(regExp, this);
#else
qCDebug(appLog) << "QT_VERSION_MAJOR <= 5, setting regular expression validator";
QRegExp regExp("^[A-Za-z0-9`~!@#$%^&*()_-+=<>,.\\/ ]+$");
QRegExp regExp("^[A-Za-z0-9`~!@#$%^&*()_+=<>,.\\/ -]+$");
QRegExpValidator *regExpValidator = new QRegExpValidator(regExp, this);
#endif

Expand Down
Loading