This commit is contained in:
Devin Howard 2017-09-09 09:30:20 -07:00
parent 5c01754df1
commit 05d62e615e

View file

@ -67,8 +67,8 @@ const PasteInput = {
Import.handleJSON(text)
} else if (text.match(/^[Tt]opics\t/) || text.match(/^[Ss]ynapses\t/)) {
Import.handleTSV(text)
} else if (text.match(/^[Tt]opics/) && text.match(/[\n,][Nn]ame[,\n]/)
|| text.match(/^[Ss]ynapses/) && text.match(/[\n,][Tt]opic1[,\n]/)) {
} else if ((text.match(/^[Tt]opics/) && text.match(/[\n,][Nn]ame[,\n]/)) ||
(text.match(/^[Ss]ynapses/) && text.match(/[\n,][Tt]opic1[,\n]/))) {
Import.handleCSV(text)
} else {
// Handle as plain text