feat: allow more separators

This commit is contained in:
Anna 2022-04-11 15:50:20 -04:00
parent 499aeee2b4
commit f95975a2da
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
2 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,7 @@ pub async fn start_task(state: Arc<State>) {
eprintln!("could not get user token: {:?}", e);
}
tokio::time::sleep(Duration::minutes(15).to_std().unwrap()).await;
tokio::time::sleep(Duration::minutes(5).to_std().unwrap()).await;
}
});
}

View File

@ -201,7 +201,11 @@ async fn rename_a_split(state: Arc<State>, redemption: &Redemption) {
}
};
let (old, new) = match input.split_once("=>")
.or_else(|| input.split_once("==>"))
.or_else(|| input.split_once("->"))
.or_else(|| input.split_once("-->"))
.or_else(|| input.split_once(">"))
.or_else(|| input.split_once(">>"))
{
Some(x) => x,
None => {