check for TSV only at start of string

This commit is contained in:
Devin Howard 2017-04-11 08:14:48 -07:00
parent a16d2882f9
commit bb04117ce7

View file

@ -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