Let json files support naive parsing methods #1245 (#1247)

### What problem does this PR solve?

Let json files support naive parsing methods #1245

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu 2024-06-24 10:40:51 +08:00 committed by GitHub
parent d185a2e7f2
commit 57970570ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,11 +16,12 @@ const ParserListMap = new Map([
'laws',
'presentation',
'one',
'qa',
],
],
[
['doc', 'docx'],
['naive', 'resume', 'book', 'laws', 'one'],
['naive', 'resume', 'book', 'laws', 'one', 'qa', 'manual'],
],
[
['xlsx', 'xls'],
@ -33,6 +34,8 @@ const ParserListMap = new Map([
],
[['txt'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
[['csv'], ['naive', 'resume', 'book', 'laws', 'one', 'qa', 'table']],
[['md'], ['naive', 'qa']],
[['json'], ['naive']],
]);
const getParserList = (