We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 902cbf4 commit 18d9a78Copy full SHA for 18d9a78
src/main/java/de/neuwirthinformatik/Alexander/GitJarUpdate/Version.java
@@ -15,7 +15,9 @@ public Version(String version) {
15
if(version == null)
16
throw new IllegalArgumentException("Version can not be null");
17
if(!version.matches("[0-9]+(\\.[0-9]+)*"))
18
- throw new IllegalArgumentException("Invalid version format");
+ throw new IllegalArgumentException("Invalid version format: " + version);
19
+ if(!version.matches("v[0-9]+(\\.[0-9]+)*"))
20
+ version = version.substring(1);
21
this.version = version;
22
}
23
0 commit comments