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:
Orgad Shaneh
2016-02-11 15:59:49 +02:00
committed by Orgad Shaneh
parent 4cf86a4f85
commit ecdc2013cd

View File

@@ -212,7 +212,7 @@ GitGrep::GitGrep()
tr("Tree: add reference here or leave empty to search through the file system)"));
m_treeLineEdit->setToolTip(
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));
layout->addWidget(m_treeLineEdit);
TextEditor::FindInFiles *findInFiles = TextEditor::FindInFiles::instance();