Skip to content

Commit

Permalink
chore: improve code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Dec 4, 2024
1 parent 0fcca05 commit 46c3ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export const isImageString = (url: string) => {
* @param filetype The type of the file.
* @returns The filename with the inferred extension.
* @example
* inferExtension('A video.mp4') // A video.mp4
* inferExtension('An audio file', 'audio/mpeg') // An audio file.mp3
* inferExtension('A video', 'video/mp4') // A video.mp4
*/
export const inferExtension = async (filename: string, filetype?: string) => {
if (!filetype || /\.[0-9a-z]+$/i.test(filename)) return filename;
Expand Down

0 comments on commit 46c3ca3

Please sign in to comment.