Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Commit

Permalink
Improve version prefix handling
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Dec 30, 2016
1 parent af2e464 commit 9e351b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions updaters/git.js
Expand Up @@ -50,7 +50,7 @@ var update = function(library, callback) {
return tag.name;
});
var needed = _.filter(versions, function(version) {
if (version[0] === 'v' || version[0] === 'V') {
if ((version[0] === 'v' || version[0] === 'V' || version[0] === 'r') && version.length > 1 && !isNaN(version[1])) {
version = version.substr(1);
}
return (!cdnjs.checkVersion(library, version) && /\d+/.test(version));
Expand All @@ -60,7 +60,7 @@ var update = function(library, callback) {
}
async.eachSeries(needed, function(tag, callback) {
repo.checkout(tag, function() {
if (tag[0] === 'v' || tag[0] === 'V') {
if (tag[0] === 'v' || tag[0] === 'V' || tag[0] === 'r') {
tag = tag.substr(1);
}
var basePath = library.autoupdate.basePath || "";
Expand Down

0 comments on commit 9e351b7

Please sign in to comment.