search: don't propose regex queries if globbing is active
Created by: stefanhengl
Relates to #12476
This PR updates alertForNoResolvedRepos
to not propose regex queries if globbing is active. The alert messages are still helpful.
Background:
alertForNoResolvedRepos
contains a lot of logic to propose queries, most of which is based on regex syntax. For example, if repo:a repo:b
does not return results, the alert proposes to try repo:a|b
. For now, we neither support AND/OR operators for filters nor |
as part of an extended glob syntax. Until then we cannot propose similar queries when globbing is active.