Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Revert "Use multi-line regex for '\s'" (#25926)

Peter Tripp466be14b56fa
diff --git a/crates/project/src/search.rs b/crates/project/src/search.rs
index 75bca1f8a03..f706cdf929c 100644
--- a/crates/project/src/search.rs
+++ b/crates/project/src/search.rs
@@ -137,7 +137,7 @@ impl SearchQuery {
query = word_query
}
- let multiline = query.contains('\n') || query.contains("\\n") || query.contains("\\s");
+ let multiline = query.contains('\n') || query.contains("\\n");
let regex = RegexBuilder::new(&query)
.case_insensitive(!case_sensitive)
.build()?;