@transportme/vline-nsp-reader 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,8 +86,10 @@ export default class PassTableReader {
86
86
  const colCount = tableData[1].length
87
87
  for (let x = colCount - 1; x > 0; x--) {
88
88
  let text = tableData[0][x] || ''
89
- if (text.startsWith(' ') || text.startsWith('to')) {
90
- tableData[0][x - 1] = (tableData[0][x - 1] + ' ' + text.trim()).replace('continued', '').trim()
89
+ if (text.trim().match(/^cont.+$/)) {
90
+ tableData[0][x] = ''
91
+ } else if (text.startsWith(' ') || text.startsWith('to')) {
92
+ tableData[0][x - 1] = (tableData[0][x - 1] + ' ' + text.trim()).replace(/cont.+/, '').trim()
91
93
  tableData[0][x] = ''
92
94
  }
93
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transportme/vline-nsp-reader",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "lib.mjs",
5
5
  "scripts": {
6
6
  "test": "mocha './{,!(node_modules)/**}/*.test.mjs'"