`match.indexOf(";")` is called twice, so it should be put in a var.