Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

address issues from by latest regex update #671

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
98 changes: 44 additions & 54 deletions src/agent/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/agent/onefuzz/src/libfuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ impl<'a> LibFuzzer<'a> {
let output_text = String::from_utf8_lossy(&output.stderr);
let pat = r"MERGE-OUTER: (\d+) new files with (\d+) new features added";
let re = regex::Regex::new(pat).unwrap();
match re.captures_iter(&output_text).next() {
let captures = re.captures_iter(&output_text).next();
match captures {
Some(captures) => {
let added_files_count = captures.get(1).unwrap().as_str().parse::<i32>().unwrap();
let added_feature_count = captures.get(2).unwrap().as_str().parse::<i32>().unwrap();
Expand Down