Skip to content

Commit

Permalink
Added checks for undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony committed Sep 26, 2023
1 parent fc107f1 commit 2b6494c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ftn_address.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
Expand Down

0 comments on commit 2b6494c

Please sign in to comment.