jsx working
This commit is contained in:
parent
0f0bc6c4e5
commit
a68046ecd6
19 changed files with 814 additions and 458 deletions
12
src/helpers/normalizeFiletype.ts
Normal file
12
src/helpers/normalizeFiletype.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
export const normalizeFiletype = (filetype: string): string => {
|
||||
const lowercaseFiletype = filetype.toLowerCase();
|
||||
|
||||
switch (lowercaseFiletype) {
|
||||
case "jpg":
|
||||
return "jpeg";
|
||||
case "htm":
|
||||
return "html";
|
||||
default:
|
||||
return lowercaseFiletype;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue