Fixed missing semi-colon and a regex