check for TSV only at start of string
This commit is contained in:
parent
a16d2882f9
commit
bb04117ce7
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ const PasteInput = {
|
||||||
Import.handleURL(text, coords)
|
Import.handleURL(text, coords)
|
||||||
} else if (text[0] === '{') {
|
} else if (text[0] === '{') {
|
||||||
Import.handleJSON(text)
|
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)
|
Import.handleTSV(text)
|
||||||
} else {
|
} else {
|
||||||
//Handle as plain text
|
//Handle as plain text
|
||||||
|
|
Loading…
Add table
Reference in a new issue