format all
This commit is contained in:
parent
50e9b861b0
commit
da1a8934e1
3 changed files with 13 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
export const normalizeFiletype = (filetype: string): string => {
|
||||
const lowercaseFiletype = filetype.toLowerCase();
|
||||
|
||||
|
||||
switch (lowercaseFiletype) {
|
||||
case "jpg":
|
||||
return "jpeg";
|
||||
|
|
@ -11,11 +11,11 @@ export const normalizeFiletype = (filetype: string): string => {
|
|||
default:
|
||||
return lowercaseFiletype;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const normalizeOutputFiletype = (filetype: string): string => {
|
||||
const lowercaseFiletype = filetype.toLowerCase();
|
||||
|
||||
|
||||
switch (lowercaseFiletype) {
|
||||
case "jpeg":
|
||||
return "jpg";
|
||||
|
|
@ -24,4 +24,4 @@ export const normalizeOutputFiletype = (filetype: string): string => {
|
|||
default:
|
||||
return lowercaseFiletype;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue