From 8ddacc8e058878e8fc46a2ff97563eb4f97e1a85 Mon Sep 17 00:00:00 2001 From: junknet Date: Sun, 27 Mar 2022 01:17:35 +0800 Subject: [PATCH] add java start with filter --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6488129..823e04e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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);