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
Merge pull request #3406 from asfaltboy/patch-1

Hash lookup should be matched exactly against the slug