mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 18:56:51 +00:00
refactor(gui): linting
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
const imageExt = ['jpeg', 'gif', 'png', 'apng', 'svg', 'bmp', 'ico', 'jpg'];
|
||||
const imageExt = ['jpeg', 'gif', 'png', 'apng', 'svg', 'bmp', 'ico', 'jpg']
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user