Commit f1eb606a f1eb606a0d96f6bf46ad6bd4490780c5ce786169 by Nicolas Perriault

fixed erroneous way to check for version number length

1 parent 7bc55f1e
......@@ -255,7 +255,7 @@ function bootstrap(global) {
throw new global.CasperError('Cannot read package file contents: ' + e);
}
parts = pkg.version.trim().split(".");
if (parts < 3) {
if (parts.length < 3) {
throw new global.CasperError("Invalid version number");
}
patchPart = parts[2].split('-');
......