From ecdc2013cdc090df76028b5e789261fb8b9236a5 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 11 Feb 2016 15:59:49 +0200 Subject: [PATCH] Git: Fix tree validator in grep Allow all non-space characters Change-Id: I6f64392d80aed7ac560f9564d91305074ed0996d Reviewed-by: Friedemann Kleint Reviewed-by: Tobias Hunger --- src/plugins/git/gitgrep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp index ec3bff0737..f269947fbd 100644 --- a/src/plugins/git/gitgrep.cpp +++ b/src/plugins/git/gitgrep.cpp @@ -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(); -- GitLab