Skip to content

Commit

Permalink
Fix version parsing for strings starting with 'v'
Browse files Browse the repository at this point in the history
Modified the VersionChecker to handle version strings that start with 'v'. This ensures compatibility with different versioning formats and avoids potential errors during version parsing.
  • Loading branch information
NonSwag committed Oct 2, 2024
1 parent aa193cf commit cf997e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public VersionChecker() {

@Override
public SemanticVersion parseVersion(String version) {
return SemanticVersion.parse(version);
return SemanticVersion.parse(version.startsWith("v") ? version.substring(1) : version);
}

@Override
Expand Down

0 comments on commit cf997e7

Please sign in to comment.