hap-java / HAP-Java

Java implementation of the HomeKit Accessory Protocol
MIT License
153 stars 82 forks source link

Some streamlining #65

Closed ccutrer closed 5 years ago

ccutrer commented 5 years ago

some minor optimizations to reduce the /accessories response size

ccutrer commented 5 years ago

It already does. Non-Apple IDs won't match the regex, so will not have any replacements done, returning the original string (I tested this).

andylintner commented 5 years ago

Huh, just read the javadoc on replaceAll - you're right.