Disable searches for '.' in the terminal. (#4042)

Release Notes:

- N/A A crash that could occur when searching for '.' in the terminal
with a large monitor.
This commit is contained in:
Mikayla Maki 2024-01-12 21:17:10 -08:00 committed by GitHub
commit acb13738b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -600,6 +600,9 @@ fn possible_open_targets(
pub fn regex_search_for_query(query: &project::search::SearchQuery) -> Option<RegexSearch> {
let query = query.as_str();
if query == "." {
return None;
}
let searcher = RegexSearch::new(&query);
searcher.ok()
}