Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add compareLoose function

  • Loading branch information...
commit 008ff736a40375dd01ed5dcaf27df7cc488c6c6b 1 parent 4bd12fb
@isaacs isaacs authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 semver.js
View
5 semver.js
@@ -395,6 +395,11 @@ function compare(a, b, loose) {
return new SemVer(a, loose).compare(b);
}
+exports.compareLoose = compareLoose;
+function compareLoose(a, b) {
+ return compare(a, b, true);
+}
+
exports.rcompare = rcompare;
function rcompare(a, b, loose) {
return compare(b, a, loose);
Please sign in to comment.
Something went wrong with that request. Please try again.