fixed erroneous way to check for version number length
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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('-'); | ... | ... |
-
Please register or sign in to post a comment