Skip to content

Commit

Permalink
Merge pull request #137 from dhebbeker/feature/leading-v-in-version-s…
Browse files Browse the repository at this point in the history
…tring

Refine cutting of a preceding v in version string
  • Loading branch information
javiersantos authored Jul 5, 2018
2 parents ed54068 + a286d94 commit 7cfdfeb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,9 @@ private static String getVersion(UpdateFrom updateFrom, Boolean isAvailable, Str
if (splitGitHub.length > 1) {
splitGitHub = splitGitHub[1].split("(\")");
version = splitGitHub[0].trim();
if (version.contains("v")) { // Some repo uses vX.X.X
splitGitHub = version.split("(v)");
if (version.startsWith("v"))
{ // Some repo uses vX.X.X
splitGitHub = version.split("(v)", 2);
version = splitGitHub[1].trim();
}
}
Expand Down

0 comments on commit 7cfdfeb

Please sign in to comment.