Commit ecdc2013 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Git: Fix tree validator in grep

Allow all non-space characters

Change-Id: I6f64392d80aed7ac560f9564d91305074ed0996d
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 4cf86a4f
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment