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
b8362f89
...
b8362f89527674000cb94a0948de5955965b5891
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
d30c50a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
modules/utils.js
modules/utils.js
View file @
b8362f8
...
...
@@ -588,6 +588,7 @@ exports.unique = unique;
* @return Number
*/
function
cmpVersion
(
a
,
b
)
{
"use strict"
;
var
i
,
cmp
,
len
,
re
=
/
(\.
0
)
+
[^\.]
*$/
;
function
versionToString
(
version
)
{
if
(
isObject
(
version
))
{
...
...
@@ -620,6 +621,7 @@ exports.cmpVersion = cmpVersion;
* @return Boolean
*/
function
gteVersion
(
a
,
b
)
{
"use strict"
;
return
cmpVersion
(
a
,
b
)
>=
0
;
}
exports
.
gteVersion
=
gteVersion
;
...
...
@@ -632,6 +634,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