chore: fix json detection issue when importing

This commit is contained in:
Aman Harwara
2023-08-18 17:07:11 +05:30
parent 18fdc482a9
commit b43f306d6b

View File

@@ -54,10 +54,6 @@ export class Importer {
return 'evernote'
}
if (file.type === 'application/json' && this.superConverterService.isValidSuperString(content)) {
return 'super'
}
try {
const json = JSON.parse(content)
@@ -76,6 +72,10 @@ export class Importer {
/* empty */
}
if (file.type === 'application/json' && this.superConverterService.isValidSuperString(content)) {
return 'super'
}
if (PlaintextConverter.isValidPlaintextFile(file)) {
return 'plaintext'
}