Merge pull request #2867 from chetan-v/JsonFix

Fixed the guessing of JSON for .txt(2820)
This commit is contained in:
Tom Morris 2020-07-03 02:55:50 -04:00 committed by GitHub
commit a4b7a00c70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ function registerImporting() {
/*
* Extension to format mappings
*/
IM.registerExtension(".txt", "text/line-based");
IM.registerExtension(".txt", "text");
IM.registerExtension(".csv", "text/line-based/*sv");
IM.registerExtension(".tsv", "text/line-based/*sv");
@ -266,7 +266,7 @@ function registerImporting() {
/*
* 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/x-csv", "text/line-based/*sv");
IM.registerMimeType("text/tab-separated-value", "text/line-based/*sv");