From 00122433750b05a156f9ef783640bb35c40f3772 Mon Sep 17 00:00:00 2001 From: arya2 Date: Mon, 20 Mar 2023 18:23:05 -0400 Subject: [PATCH] removes println from debugging and adds comment --- zebra-utils/src/bin/search-issue-refs/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra-utils/src/bin/search-issue-refs/main.rs b/zebra-utils/src/bin/search-issue-refs/main.rs index aef776e0da1..a908a85d670 100644 --- a/zebra-utils/src/bin/search-issue-refs/main.rs +++ b/zebra-utils/src/bin/search-issue-refs/main.rs @@ -106,8 +106,9 @@ async fn main() -> Result<()> { let file_paths = search_directory(&".".into())?; + // Zebra's github issue numbers could be up to 4 digits let issue_regex = - Regex::new(r"(https://github.com/ZcashFoundation/zebra/issues/|#)(\d{1,6})").unwrap(); + Regex::new(r"(https://github.com/ZcashFoundation/zebra/issues/|#)(\d{1,4})").unwrap(); let mut possible_issue_refs: Vec = vec![]; @@ -122,7 +123,6 @@ async fn main() -> Result<()> { let potential_issue_ref = captures.get(2).expect("matches should have 2 captures"); let matching_text = potential_issue_ref.as_str(); - println!("{matching_text}"); let id = matching_text[matching_text.len().checked_sub(4).unwrap_or(1)..].to_string();