Skip to content

Commit

Permalink
handle numeric zero topic replacements (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Nov 8, 2019
1 parent 3f61aad commit dec0852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodes/ccu-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2345,7 +2345,7 @@ module.exports = function (RED) {
rkey = 'iface';
}

topic = topic.replace(rx, msgLower[rkey] || '');
topic = topic.replace(rx, typeof msgLower[rkey] === 'undefined' ? '' : msgLower[rkey]);
});
}

Expand Down

0 comments on commit dec0852

Please sign in to comment.