jason0x43 / hacs-hubitat

A Hubitat integration for Home Assistant
MIT License
196 stars 48 forks source link

Use regex search() instead of match() #129

Closed amosyuen closed 3 years ago

amosyuen commented 3 years ago

match() only matches at the beginning of ths tring. Use regex search() instead of match() so that it matches values not at the beginning of the name. e.g. will now match "Dining Room Switch".

jason0x43 commented 3 years ago

Good catch -- thanks!