diff --git a/frontend/src/Metamaps/PasteInput.js b/frontend/src/Metamaps/PasteInput.js index 019165f7..dc76ed3b 100644 --- a/frontend/src/Metamaps/PasteInput.js +++ b/frontend/src/Metamaps/PasteInput.js @@ -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