Fix parse check for '1.2.3foo' style input