diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-10 10:48:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-10 10:48:02 +0800 |
| commit | 48219d2808bafc88fa4fa4d6997aa9dc92e6f686 (patch) | |
| tree | 65fefbd6e1c883a8ea55568bd24ac67c678b4a7c /src/utils/path.rs | |
| parent | 0afe5fa24b8990991635c7023f0fb89403f55d90 (diff) | |
| download | aichat-48219d2808bafc88fa4fa4d6997aa9dc92e6f686.tar.gz | |
refactor: fetch image as data url (#694)
Diffstat (limited to 'src/utils/path.rs')
| -rw-r--r-- | src/utils/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<T: AsRef<str>>(paths: &[T]) -> Result<Vec<String> Ok(new_paths) } -pub fn path_extension(path: &str) -> Option<String> { +pub fn get_patch_extension(path: &str) -> Option<String> { Path::new(&path) .extension() .map(|v| v.to_string_lossy().to_lowercase()) |
