While I like this rule generally, regex with `/g` are stateful so this could cause issues. Maybe a configuration option or just not error on `/g`?