MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / like_pattern

Function like_pattern

src/global_db.rs:624–638  ·  view source on GitHub ↗
(query: &str)

Source from the content-addressed store, hash-verified

622}
623
624fn like_pattern(query: &str) -> String {
625 let mut pattern = String::with_capacity(query.len() + 2);
626 pattern.push('%');
627 for ch in query.chars() {
628 match ch {
629 '%' | '_' | '\\' => {
630 pattern.push('\\');
631 pattern.push(ch);
632 }
633 _ => pattern.push(ch),
634 }
635 }
636 pattern.push('%');
637 pattern
638}
639
640fn repo_identity_aliases(git_common_dir: Option<&Path>) -> Vec<String> {
641 let mut aliases = Vec::new();

Callers 1

search_code_projectsMethod · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected