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) { ...@@ -255,7 +255,7 @@ function bootstrap(global) {
255 throw new global.CasperError('Cannot read package file contents: ' + e); 255 throw new global.CasperError('Cannot read package file contents: ' + e);
256 } 256 }
257 parts = pkg.version.trim().split("."); 257 parts = pkg.version.trim().split(".");
258 if (parts < 3) { 258 if (parts.length < 3) {
259 throw new global.CasperError("Invalid version number"); 259 throw new global.CasperError("Invalid version number");
260 } 260 }
261 patchPart = parts[2].split('-'); 261 patchPart = parts[2].split('-');
......