mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-24 18:14:14 +00:00
update prefix trim method
This commit is contained in:
parent
43cce03845
commit
3682b5bf3f
@ -206,7 +206,7 @@ impl Menu {
|
||||
/// * trim slash postfix
|
||||
/// * crop resulting string at the middle position on new `value` longer than `limit`
|
||||
fn label(value: &str, limit: usize) -> String {
|
||||
let value = value.replace("gemini://", "");
|
||||
let value = value.trim_start_matches("gemini://");
|
||||
let value = value.trim_end_matches('/');
|
||||
|
||||
if value.len() <= limit {
|
||||
|
Loading…
x
Reference in New Issue
Block a user