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

Git: Fix tree validator in grep

Allow all non-space characters

Change-Id: I6f64392d80aed7ac560f9564d91305074ed0996d
Reviewed-by: default avatarFriedemann Kleint <>
Reviewed-by: default avatarTobias Hunger <>
parent 4cf86a4f
......@@ -212,7 +212,7 @@ GitGrep::GitGrep()
tr("Tree: add reference here or leave empty to search through the file system)"));
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));
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