commit
ea18479822
1 changed files with 5 additions and 7 deletions
|
@ -31,13 +31,12 @@ const Import = {
|
||||||
cidMappings: {}, // to be filled by import_id => cid mappings
|
cidMappings: {}, // to be filled by import_id => cid mappings
|
||||||
|
|
||||||
handleTSV: function (text) {
|
handleTSV: function (text) {
|
||||||
var self = Import
|
const results = Import.parseTabbedString(text)
|
||||||
results = self.parseTabbedString(text)
|
Import.handle(results)
|
||||||
self.handle(results)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handleCSV: function (text, parserOpts = {}) {
|
handleCSV: function (text, parserOpts = {}) {
|
||||||
var self = Import
|
const self = Import
|
||||||
|
|
||||||
const topicsRegex = /("?Topics"?)([\s\S]*)/mi
|
const topicsRegex = /("?Topics"?)([\s\S]*)/mi
|
||||||
const synapsesRegex = /("?Synapses"?)([\s\S]*)/mi
|
const synapsesRegex = /("?Synapses"?)([\s\S]*)/mi
|
||||||
|
@ -71,9 +70,8 @@ const Import = {
|
||||||
},
|
},
|
||||||
|
|
||||||
handleJSON: function (text) {
|
handleJSON: function (text) {
|
||||||
var self = Import
|
const results = JSON.parse(text)
|
||||||
results = JSON.parse(text)
|
Import.handle(results)
|
||||||
self.handle(results)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
handle: function(results) {
|
handle: function(results) {
|
||||||
|
|
Loading…
Reference in a new issue