From bb04117ce7b86d58c022038543e5edfb71ac5880 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Tue, 11 Apr 2017 08:14:48 -0700 Subject: [PATCH] check for TSV only at start of string --- frontend/src/Metamaps/PasteInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Metamaps/PasteInput.js b/frontend/src/Metamaps/PasteInput.js index 47167aed..c1c38b7e 100644 --- a/frontend/src/Metamaps/PasteInput.js +++ b/frontend/src/Metamaps/PasteInput.js @@ -65,7 +65,7 @@ const PasteInput = { Import.handleURL(text, coords) } else if (text[0] === '{') { Import.handleJSON(text) - } else if (text.match(/[Tt]opics\t/) || text.match(/[Ss]ynapses\t/)) { + } else if (text.match(/^[Tt]opics\t/) || text.match(/^[Ss]ynapses\t/)) { Import.handleTSV(text) } else { //Handle as plain text