mirror of
https://github.com/G2-Games/minidisc-cli.git
synced 2025-04-19 11:42: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;
|
let new_fw_name_with_groups;
|
||||||
if has_fw_groups {
|
if has_fw_groups {
|
||||||
if has_fw_groups_and_title {
|
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
|
new_fw_name_with_groups = re
|
||||||
.replace_all(
|
.replace_all(
|
||||||
&old_raw_fw_name,
|
&old_raw_fw_name,
|
||||||
|
@ -432,7 +432,7 @@ impl NetMDContext {
|
||||||
.into()
|
.into()
|
||||||
} else {
|
} else {
|
||||||
new_fw_name_with_groups =
|
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 {
|
} else {
|
||||||
new_fw_name_with_groups = new_fw_name.unwrap();
|
new_fw_name_with_groups = new_fw_name.unwrap();
|
||||||
|
@ -450,7 +450,7 @@ impl NetMDContext {
|
||||||
let new_name_with_groups;
|
let new_name_with_groups;
|
||||||
if has_groups {
|
if has_groups {
|
||||||
if has_groups_and_title {
|
if has_groups_and_title {
|
||||||
let re = Regex::new(r"/^0;.*?\/\//").unwrap();
|
let re = Regex::new(r"^0;.*?\/\/").unwrap();
|
||||||
new_name_with_groups = re
|
new_name_with_groups = re
|
||||||
.replace_all(
|
.replace_all(
|
||||||
&old_raw_name,
|
&old_raw_name,
|
||||||
|
|
Loading…
Reference in a new issue