Commit 60ff83a 1 parent 289142f commit 60ff83a Copy full SHA for 60ff83a
File tree 2 files changed +7
-1
lines changed
main/java/org/jabref/logic/util
test/java/org/jabref/logic/util
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public class Version {
29
29
private static final Version UNKNOWN_VERSION = new Version ();
30
30
31
31
private final static Pattern VERSION_PATTERN = Pattern .compile ("(?<major>\\ d+)(\\ .(?<minor>\\ d+))?(\\ .(?<patch>\\ d+))?(?<stage>-alpha|-beta)?(?<dev>-?dev)?.*" );
32
- private final static Pattern CI_SUFFIX_PATTERN = Pattern .compile ("-ci\\ .\\ d+$ " );
32
+ private final static Pattern CI_SUFFIX_PATTERN = Pattern .compile ("-ci\\ .\\ d+" );
33
33
34
34
private static final String JABREF_GITHUB_RELEASES = "https://api.github.com/repos/JabRef/JabRef/releases" ;
35
35
Original file line number Diff line number Diff line change @@ -288,4 +288,10 @@ public void ciSuffixShouldBeRemoved() {
288
288
Version v50ci = Version .parse ("5.0-ci.1" );
289
289
assertEquals ("5.0" , v50ci .getFullVersion ());
290
290
}
291
+
292
+ @ Test
293
+ public void ciSuffixShouldBeRemovedIfDateIsPresent () {
294
+ Version v50ci = Version .parse ("5.0-ci.1--2020-03-06--289142f" );
295
+ assertEquals ("5.0--2020-03-06--289142f" , v50ci .getFullVersion ());
296
+ }
291
297
}
You can’t perform that action at this time.
0 commit comments