From eee78fd1a7e6fb5604d77e25058bbf779ec72dfa Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 12 Jan 2025 11:34:45 +0000 Subject: [PATCH] Fix CI --- backend/sync_lib/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/sync_lib/src/lib.rs b/backend/sync_lib/src/lib.rs index b8424e08..e38f60b3 100644 --- a/backend/sync_lib/src/lib.rs +++ b/backend/sync_lib/src/lib.rs @@ -80,7 +80,7 @@ pub fn is_binary(data: &[u8]) -> bool { pub fn is_file_type_mergable(path_or_file_name: &str) -> bool { set_panic_hook(); - let file_extension = path_or_file_name.split('.').last().unwrap_or_default(); + let file_extension = path_or_file_name.split('.').next_back().unwrap_or_default(); matches!(file_extension.to_lowercase().as_str(), "md" | "txt") }