Files
homebridge/lib/server.js
Nathan Henrie 15bf22805c Add test for valid username
Like a MAC address, a valid username can only contain 6 pairs of
hexadecimal characters, and for homebridge purposes must be
colon-separated. This adds a simple regex test for a proper username,
since I just spent nearly 24h trying to debug an issue that all came
down to not realizing that a MAC address could only have letters A-F
(see https://github.com/nfarina/homebridge/issues/385).
2015-12-27 10:29:21 -07:00

10 KiB