mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
implement argument option to append trailing slash to files match pattern(s), update crate version
This commit is contained in:
parent
ff323e58c7
commit
dc44d38761
5 changed files with 106 additions and 80 deletions
|
|
@ -240,9 +240,17 @@ impl Public {
|
|||
if fc.alt.is_size {
|
||||
a.push(b(file.meta.size()))
|
||||
}
|
||||
if !l.ends_with('/') {
|
||||
for p in &fc.append_slash {
|
||||
if p.is_match(&l) {
|
||||
l.push('/');
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if !a.is_empty() {
|
||||
l.push(' ');
|
||||
l.push_str(&a.join(", "));
|
||||
l.push_str(&a.join(", "))
|
||||
}
|
||||
l
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue