mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
chore: some quality of life changes
This commit is contained in:
parent
5b690ed7ca
commit
5235b29a51
3 changed files with 10 additions and 2 deletions
|
|
@ -389,7 +389,8 @@ pub fn module_output(data: &Data, module: &str) -> Option<Vec<String>> {
|
|||
}
|
||||
let break_holder = "<_PR_BR>";
|
||||
Some(
|
||||
String::from_utf8_lossy(&output.stdout)[..output.stdout.len() - break_holder.len()]
|
||||
String::from_utf8_lossy(&output.stdout)
|
||||
.trim_end_matches(break_holder)
|
||||
.split("<_PR_BR>")
|
||||
.map(|s| s.trim().to_string())
|
||||
.collect::<Vec<String>>(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue