mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 09:05:30 +00:00
add comment
This commit is contained in:
parent
50bdb438b5
commit
2761639c8d
1 changed files with 2 additions and 1 deletions
|
|
@ -103,9 +103,10 @@ impl Public {
|
||||||
keyword: Option<&str>,
|
keyword: Option<&str>,
|
||||||
sort_order: Option<(Sort, Order)>,
|
sort_order: Option<(Sort, Order)>,
|
||||||
) -> Result<Vec<File>, Error> {
|
) -> Result<Vec<File>, Error> {
|
||||||
|
/// Search keyword separators
|
||||||
const S: &[char] = &[
|
const S: &[char] = &[
|
||||||
'_', '-', ':', ';', ',', '(', ')', '[', ']', '/', '!', '?',
|
'_', '-', ':', ';', ',', '(', ')', '[', ']', '/', '!', '?',
|
||||||
' ', // @TODO make separators list optional
|
' ', // @TODO make optional
|
||||||
];
|
];
|
||||||
let mut files = Vec::with_capacity(self.default_capacity);
|
let mut files = Vec::with_capacity(self.default_capacity);
|
||||||
for dir_entry in fs::read_dir(&self.root)? {
|
for dir_entry in fs::read_dir(&self.root)? {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue