* If a block is tsv format
(block: string)
| 189 | * If a block is tsv format |
| 190 | */ |
| 191 | function isTSVFormat(block: string): boolean { |
| 192 | // Simple method to find out if a block is tsv format |
| 193 | const firstLine = block.slice(0, block.indexOf('\n')); |
| 194 | if (firstLine.indexOf(ITEM_SPLITER) >= 0) { |
| 195 | return true; |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | const itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g'); |
| 200 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…