correcting regex matching for slug fields