Fixed the guessing of JSON for .txt(2820)

This commit is contained in:
chetan 2020-07-03 10:46:07 +05:30
parent 28a9f68236
commit 3932b23eb6

View File

@ -235,7 +235,7 @@ function registerImporting() {
/* /*
* Extension to format mappings * Extension to format mappings
*/ */
IM.registerExtension(".txt", "text/line-based"); IM.registerExtension(".txt", "text");
IM.registerExtension(".csv", "text/line-based/*sv"); IM.registerExtension(".csv", "text/line-based/*sv");
IM.registerExtension(".tsv", "text/line-based/*sv"); IM.registerExtension(".tsv", "text/line-based/*sv");
@ -266,7 +266,7 @@ function registerImporting() {
/* /*
* Mime type to format mappings * Mime type to format mappings
*/ */
IM.registerMimeType("text/plain", "text/line-based"); IM.registerMimeType("text/plain", "text");
IM.registerMimeType("text/csv", "text/line-based/*sv"); IM.registerMimeType("text/csv", "text/line-based/*sv");
IM.registerMimeType("text/x-csv", "text/line-based/*sv"); IM.registerMimeType("text/x-csv", "text/line-based/*sv");
IM.registerMimeType("text/tab-separated-value", "text/line-based/*sv"); IM.registerMimeType("text/tab-separated-value", "text/line-based/*sv");