mirror of
https://github.com/G2-Games/minidisc-cli.git
synced 2025-04-19 03:32:53 -05:00
Fixed regex for editing title
This commit is contained in:
parent
641c91bb7d
commit
151214764a
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue