fix hash lookup to be exact match and not "substring"

RegExp('active', 'i') matches both 'active' and 'inactive', which is not what's intended by this regex