extensions
This commit is contained in:
parent
ccabe1222f
commit
8b8fc14dd1
1 changed files with 2 additions and 2 deletions
|
|
@ -1,2 +1,2 @@
|
||||||
const imageExtensions = ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.svg', '.webp'];
|
const extensions = ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.svg', '.webp'];
|
||||||
module.exports = loc => imageExtensions.some(ext => loc.toLowerCase().endsWith(ext));
|
module.exports = loc => extensions.some(ext => loc.toLowerCase().endsWith(ext));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue