jshint
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -641,6 +641,7 @@ exports.unique = unique; | ... | @@ -641,6 +641,7 @@ exports.unique = unique; |
641 | * @return Number | 641 | * @return Number |
642 | */ | 642 | */ |
643 | function cmpVersion(a, b) { | 643 | function cmpVersion(a, b) { |
644 | "use strict"; | ||
644 | var i, cmp, len, re = /(\.0)+[^\.]*$/; | 645 | var i, cmp, len, re = /(\.0)+[^\.]*$/; |
645 | function versionToString(version) { | 646 | function versionToString(version) { |
646 | if (isObject(version)) { | 647 | if (isObject(version)) { |
... | @@ -673,6 +674,7 @@ exports.cmpVersion = cmpVersion; | ... | @@ -673,6 +674,7 @@ exports.cmpVersion = cmpVersion; |
673 | * @return Boolean | 674 | * @return Boolean |
674 | */ | 675 | */ |
675 | function gteVersion(a, b) { | 676 | function gteVersion(a, b) { |
677 | "use strict"; | ||
676 | return cmpVersion(a, b) >= 0; | 678 | return cmpVersion(a, b) >= 0; |
677 | } | 679 | } |
678 | exports.gteVersion = gteVersion; | 680 | exports.gteVersion = gteVersion; |
... | @@ -685,6 +687,7 @@ exports.gteVersion = gteVersion; | ... | @@ -685,6 +687,7 @@ exports.gteVersion = gteVersion; |
685 | * @return Boolean | 687 | * @return Boolean |
686 | */ | 688 | */ |
687 | function ltVersion(a, b) { | 689 | function ltVersion(a, b) { |
690 | "use strict"; | ||
688 | return cmpVersion(a, b) < 0; | 691 | return cmpVersion(a, b) < 0; |
689 | } | 692 | } |
690 | exports.ltVersion = ltVersion; | 693 | exports.ltVersion = ltVersion; | ... | ... |
-
Please register or sign in to post a comment