Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function isSupportedFormat (file) {
var e = file.name.toLowerCase().match(/\.(\w+)$/i)
e = RegExp.$1
return conversionFormats.indexOf(e) >= 0
// NOTE: was incrementing memFsTotal++ ONLY if format is valid, not needed anymore as far as I know
}