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
6ea9a841
...
6ea9a841289ab805a8b8b25a4143766b5bf391b3
authored
2013-01-10 09:32:59 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
jshint
1 parent
1fc454ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
modules/utils.js
modules/utils.js
View file @
6ea9a84
...
...
@@ -641,6 +641,7 @@ exports.unique = unique;
* @return Number
*/
function
cmpVersion
(
a
,
b
)
{
"use strict"
;
var
i
,
cmp
,
len
,
re
=
/
(\.
0
)
+
[^\.]
*$/
;
function
versionToString
(
version
)
{
if
(
isObject
(
version
))
{
...
...
@@ -673,6 +674,7 @@ exports.cmpVersion = cmpVersion;
* @return Boolean
*/
function
gteVersion
(
a
,
b
)
{
"use strict"
;
return
cmpVersion
(
a
,
b
)
>=
0
;
}
exports
.
gteVersion
=
gteVersion
;
...
...
@@ -685,6 +687,7 @@ exports.gteVersion = gteVersion;
* @return Boolean
*/
function
ltVersion
(
a
,
b
)
{
"use strict"
;
return
cmpVersion
(
a
,
b
)
<
0
;
}
exports
.
ltVersion
=
ltVersion
;
...
...
Please
register
or
sign in
to post a comment