mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 14:06:59 +00:00
chore: fix lint
Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
const imageExt = [
|
||||
"jpeg",
|
||||
"gif",
|
||||
"png",
|
||||
"png",
|
||||
"svg",
|
||||
"bmp",
|
||||
"ico",
|
||||
"jpg",
|
||||
"webp",
|
||||
];
|
||||
'jpeg',
|
||||
'gif',
|
||||
'png',
|
||||
'png',
|
||||
'svg',
|
||||
'bmp',
|
||||
'ico',
|
||||
'jpg',
|
||||
'webp'
|
||||
]
|
||||
|
||||
export default imageExt;
|
||||
export default imageExt
|
||||
|
||||
const isImage = (name) => {
|
||||
return imageExt.some((e) => name.toLowerCase().endsWith(`.${e}`));
|
||||
};
|
||||
return imageExt.some(e => name.toLowerCase().endsWith(`.${e}`))
|
||||
}
|
||||
|
||||
export { isImage };
|
||||
export { isImage }
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user