diff --git a/src/netmd/commands.rs b/src/netmd/commands.rs index ae845e1..d082efa 100644 --- a/src/netmd/commands.rs +++ b/src/netmd/commands.rs @@ -419,7 +419,7 @@ impl NetMDContext { let new_fw_name_with_groups; if has_fw_groups { if has_fw_groups_and_title { - let re = Regex::new("/^0;.*?///").unwrap(); + let re = Regex::new(r"^0;.*?//").unwrap(); new_fw_name_with_groups = re .replace_all( &old_raw_fw_name, @@ -432,7 +432,7 @@ impl NetMDContext { .into() } else { new_fw_name_with_groups = - format!(r"0;{}//{}", new_fw_name.unwrap(), old_raw_fw_name); + format!("0;{}//{}", new_fw_name.unwrap(), old_raw_fw_name); } } else { new_fw_name_with_groups = new_fw_name.unwrap(); @@ -450,7 +450,7 @@ impl NetMDContext { let new_name_with_groups; if has_groups { if has_groups_and_title { - let re = Regex::new(r"/^0;.*?\/\//").unwrap(); + let re = Regex::new(r"^0;.*?\/\/").unwrap(); new_name_with_groups = re .replace_all( &old_raw_name,