logEvents: Added missing /g to regexp.