mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Check a tag has a name before matching against it
This commit is contained in:
parent
f412ab3974
commit
d4141acc3b
@ -144,11 +144,13 @@ $(function() {
|
||||
tagVersion, match;
|
||||
|
||||
$.each(tags, function(i, tag) {
|
||||
match = tag.name.match(/^(\d+)\.(\d+)\.(\d+)$/);
|
||||
if (match) {
|
||||
tagVersion = matchToTagVersion(match);
|
||||
if (compareTags(tagVersion, latestTagVersion) == 1)
|
||||
latestTagVersion = tagVersion;
|
||||
if (! tag.name === 'undefined') {
|
||||
match = tag.name.match(/^(\d+)\.(\d+)\.(\d+)$/);
|
||||
if (match) {
|
||||
tagVersion = matchToTagVersion(match);
|
||||
if (compareTags(tagVersion, latestTagVersion) == 1)
|
||||
latestTagVersion = tagVersion;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user