Added checks for undefined

This commit is contained in:
anthony 2023-09-26 16:14:10 -05:00
parent fc107f1552
commit 2b6494cfc9
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ module.exports = class Address {
static fromString(addrStr) {
const m = FTN_ADDRESS_REGEXP.exec(addrStr);
if (m) {
if (m && m[2] && m[3]) {
// start with a 2D
let addr = {
net: parseInt(m[2]),