Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f1eb606a
...
f1eb606a0d96f6bf46ad6bd4490780c5ce786169
authored
2012-12-24 08:00:40 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed erroneous way to check for version number length
1 parent
7bc55f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
f1eb606
...
...
@@ -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
(
'-'
);
...
...
Please
register
or
sign in
to post a comment