add comment

This commit is contained in:
yggverse 2025-08-12 01:03:14 +03:00
parent 50bdb438b5
commit 2761639c8d

View file

@ -103,9 +103,10 @@ impl Public {
keyword: Option<&str>,
sort_order: Option<(Sort, Order)>,
) -> Result<Vec<File>, Error> {
/// Search keyword separators
const S: &[char] = &[
'_', '-', ':', ';', ',', '(', ')', '[', ']', '/', '!', '?',
' ', // @TODO make separators list optional
' ', // @TODO make optional
];
let mut files = Vec::with_capacity(self.default_capacity);
for dir_entry in fs::read_dir(&self.root)? {