mirror of
https://github.com/nwg-piotr/nwg-drawer.git
synced 2024-09-11 14:07:17 +03:00
adjustment to file search
This commit is contained in:
parent
6ae39580bb
commit
2a4a00c8f3
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
@ -275,7 +275,8 @@ func walk(path string, d fs.DirEntry, e error) error {
|
||||
}
|
||||
//if !d.IsDir() {
|
||||
parts := strings.Split(path, "/")
|
||||
fileName := parts[len(parts)-1]
|
||||
//fileName := parts[len(parts)-1]
|
||||
fileName := strings.Join(parts[4:], "/")
|
||||
if strings.Contains(strings.ToLower(fileName), strings.ToLower(phrase)) {
|
||||
fileSearchResults = append(fileSearchResults, path)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user