skydiver / ewelink-api

eWeLink API for JavaScript
https://www.npmjs.com/package/ewelink-api
MIT License
264 stars 108 forks source link

Fix an issue with MAC addresses and update deps #185

Open aik8 opened 1 year ago

aik8 commented 1 year ago

For some reason, this version of arpping is returning MAC addresses in the form xx:xx-xx-xx-xx-xx. This is not taken into account by the fixMacAddresses() method. Changed the split() input to a simple regex that catches both : and - characters.