diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-02-11 15:59:49 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-02-15 10:21:13 +0000 |
commit | ecdc2013cdc090df76028b5e789261fb8b9236a5 (patch) | |
tree | 13c4f8dc0fc7c8ff37d6e52f3a72a24a197ab8c8 /src/plugins/git/gitgrep.cpp | |
parent | 4cf86a4f85fcc72bb4d7fcdc763fb87b34657776 (diff) |
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>
Diffstat (limited to 'src/plugins/git/gitgrep.cpp')
-rw-r--r-- | src/plugins/git/gitgrep.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp index ec3bff0737b..f269947fbd2 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(); |