mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
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).