Skip to content

Commit

Permalink
Make github release tag parsing less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin committed Jul 24, 2017
1 parent 9340db1 commit 8820e78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,10 @@ function githubReleaseInfoToVersion(remoteName, repo, filter, release) {

if (semanticVersion.startsWith(repo + '-')) {
semanticVersion = semanticVersion.substr(repo.length + 1);
} else if (semanticVersion.startsWith('v')) {
}

if (semanticVersion.startsWith('v')) {
semanticVersion = semanticVersion.substr(1);
} else {
return null;
}

if (!/^[0-9]+(\.[0-9]+)?(\.[0-9]+)?(-.*)?$/.test(semanticVersion)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nvs",
"version": "1.4.2",
"version": "1.4.3",
"description": "Node Version Switcher",
"main": "lib/main.js",
"scripts": {
Expand Down

0 comments on commit 8820e78

Please sign in to comment.