forked from qt-creator/qt-creator
Squish: Fix wrong regex
Change-Id: I5c827403140dcbdd17287a213c55b017921ab7cf Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -137,7 +137,7 @@ ValidatingPropertyNameLineEdit::ValidatingPropertyNameLineEdit(const QStringList
|
|||||||
if (!edit)
|
if (!edit)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const QRegularExpression identifier("^[a-zA2-Z0-9_]+$");
|
const QRegularExpression identifier("^[a-zA-Z0-9_]+$");
|
||||||
const QString &value = edit->text();
|
const QString &value = edit->text();
|
||||||
|
|
||||||
return !m_forbidden.contains(value) && identifier.match(value).hasMatch();
|
return !m_forbidden.contains(value) && identifier.match(value).hasMatch();
|
||||||
|
Reference in New Issue
Block a user