Skip to content

Commit

Permalink
Mi
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-q committed Jun 2, 2023
1 parent a48af5a commit 2f361bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmd_nwr/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ pub fn execute(args: &ArgMatches) -> anyhow::Result<()> {
static ref RE_S3: Regex = Regex::new(r#"(?xi)_$"#).unwrap();
static ref RE_S4: Regex = Regex::new(r#"(?xi)^_"#).unwrap();
}
let s1 = RE_S1.replace(species, "_");
let s2 = RE_S2.replace(&*s1, "_");
let s3 = RE_S3.replace(&*s2, "");
let s4 = RE_S4.replace(&*s3, "");
let s1 = RE_S1.replace_all(species, "_");
let s2 = RE_S2.replace_all(&*s1, "_");
let s3 = RE_S3.replace_all(&*s2, "");
let s4 = RE_S4.replace_all(&*s3, "");
let species_ = s4.to_string();

// ass
Expand Down

0 comments on commit 2f361bf

Please sign in to comment.