Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Case insensitive search (damn you furi strings)
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Jul 5, 2023
1 parent 7f11479 commit dc4f264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/main/archive/scenes/archive_scene_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ uint32_t archive_scene_search_dirwalk(void* context) {
if(!file_info_is_dir(&fileinfo)) {
furi_string_set(
name, furi_string_get_cstr(path) + furi_string_search_rchar(path, '/') + 1);
if(furi_string_search_str(name, archive->text_store) != FURI_STRING_FAILURE) {
if(strcasestr(furi_string_get_cstr(name), archive->text_store) != NULL) {
archive_add_file_item(archive->browser, false, furi_string_get_cstr(path));
archive_set_item_count(archive->browser, ++count);
}
Expand Down

0 comments on commit dc4f264

Please sign in to comment.