Skip to content

Commit

Permalink
add java start with filter
Browse files Browse the repository at this point in the history
  • Loading branch information
junknet committed Mar 26, 2022
1 parent baa4407 commit 8ddacc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ fn print_symbol(filepath: PathBuf, symbol_name: &str) {
let name_str = std::str::from_utf8(name).unwrap();
outbuff = name_str.to_string();
}

if symbol_name.to_string().starts_with("Java") {
if !outbuff.starts_with("Java_") {
continue;
}
}
if outbuff.contains(symbol_name) {
let out = outbuff.replace(symbol_name, &format!("{}", symbol_name).red().to_string());
println!("{}\t{}", format!("{}", filename).blue(), out);
Expand Down

0 comments on commit 8ddacc8

Please sign in to comment.