Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add singleline flag to regex when searching all fields
  • Loading branch information
iamllama committed Apr 24, 2025
commit 38eda25887ff533af192387f32231fe72da93d7d
2 changes: 1 addition & 1 deletion rslib/src/search/sqlwriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ impl SqlWriter<'_> {
}

fn write_all_fields(&mut self, val: &str) {
self.args.push(format!("(?i)^{}$", to_re(val)));
self.args.push(format!("(?is)^{}$", to_re(val)));
write!(self.sql, "regexp_fields(?{}, n.flds)", self.args.len()).unwrap();
}

Expand Down