aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-06-30 12:23:18 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-06-30 12:23:18 +1000
commitb9612388e05a3885b5b92a3a0e8ad127c04e8630 (patch)
tree2bf41efe1ee11cbe395c23603d80b70aa297c47a /lib
parent23417e2c8ce83c790c0dae5a0a4aac99e4e98b36 (diff)
include units even when was unable to parse as prefix number postfix
Diffstat (limited to 'lib')
-rw-r--r--lib/unitsToRanges.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/unitsToRanges.js b/lib/unitsToRanges.js
index 764d8f2..ecd3c96 100644
--- a/lib/unitsToRanges.js
+++ b/lib/unitsToRanges.js
@@ -37,7 +37,7 @@ module.exports = (units, sourceAddresses) => {
acc.push(cur)
}
} else if (rangeParts.length > 2) {
- // 1-2-3 not sure if this ever occures, but just pass as is
+ // 1-2-3 not sure if this ever occurs, but just pass as is
console.log(`Unsupported range ${cur}`)
if (sourceAddresses) {
console.log(JSON.stringify(sourceAddresses, null, 2))
@@ -75,6 +75,7 @@ module.exports = (units, sourceAddresses) => {
if (sourceAddresses) {
console.log(JSON.stringify(sourceAddresses, null, 2))
}
+ acc.push([cur])
return acc
}