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