Added global flag to regexp in hug modulel.