feat: allow more separators
This commit is contained in:
parent
499aeee2b4
commit
f95975a2da
|
@ -13,7 +13,7 @@ pub async fn start_task(state: Arc<State>) {
|
||||||
eprintln!("could not get user token: {:?}", e);
|
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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -201,7 +201,11 @@ async fn rename_a_split(state: Arc<State>, redemption: &Redemption) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let (old, new) = match input.split_once("=>")
|
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(">"))
|
||||||
|
.or_else(|| input.split_once(">>"))
|
||||||
{
|
{
|
||||||
Some(x) => x,
|
Some(x) => x,
|
||||||
None => {
|
None => {
|
||||||
|
|
Loading…
Reference in New Issue