forked from qt-creator/qt-creator
Git: Fix tree validator in grep
Allow all non-space characters Change-Id: I6f64392d80aed7ac560f9564d91305074ed0996d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
4cf86a4f85
commit
ecdc2013cd
@@ -212,7 +212,7 @@ GitGrep::GitGrep()
|
|||||||
tr("Tree: add reference here or leave empty to search through the file system)"));
|
tr("Tree: add reference here or leave empty to search through the file system)"));
|
||||||
m_treeLineEdit->setToolTip(
|
m_treeLineEdit->setToolTip(
|
||||||
tr("Reference can be HEAD, tag, local or remote branch, or a commit hash."));
|
tr("Reference can be HEAD, tag, local or remote branch, or a commit hash."));
|
||||||
const QRegularExpression refExpression(QLatin1String("[\\w/]*"));
|
const QRegularExpression refExpression(QLatin1String("[\\S]*"));
|
||||||
m_treeLineEdit->setValidator(new QRegularExpressionValidator(refExpression, this));
|
m_treeLineEdit->setValidator(new QRegularExpressionValidator(refExpression, this));
|
||||||
layout->addWidget(m_treeLineEdit);
|
layout->addWidget(m_treeLineEdit);
|
||||||
TextEditor::FindInFiles *findInFiles = TextEditor::FindInFiles::instance();
|
TextEditor::FindInFiles *findInFiles = TextEditor::FindInFiles::instance();
|
||||||
|
|||||||
Reference in New Issue
Block a user