Permalink
Browse files

Add compareLoose function

  • Loading branch information...
1 parent 4bd12fb commit 008ff736a40375dd01ed5dcaf27df7cc488c6c6b @isaacs isaacs committed Jun 20, 2013
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);

0 comments on commit 008ff73

Please sign in to comment.