From 48219d2808bafc88fa4fa4d6997aa9dc92e6f686 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 10 Jul 2024 10:48:02 +0800 Subject: refactor: fetch image as data url (#694) --- src/utils/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/path.rs') diff --git a/src/utils/path.rs b/src/utils/path.rs index 4e66337..83e51c7 100644 --- a/src/utils/path.rs +++ b/src/utils/path.rs @@ -42,7 +42,7 @@ pub async fn expand_glob_paths>(paths: &[T]) -> Result Ok(new_paths) } -pub fn path_extension(path: &str) -> Option { +pub fn get_patch_extension(path: &str) -> Option { Path::new(&path) .extension() .map(|v| v.to_string_lossy().to_lowercase()) -- cgit v1.2.3