No reason for a regex, the intent is to stop publish events calling publish. The regex we had (publish.*) actually checks if publish is in the string, we care if it starts with publish.