File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
main/java/org/jabref/logic/util
test/java/org/jabref/logic/util Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public class Version {
2929 private static final Version UNKNOWN_VERSION = new Version ();
3030
3131 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+" );
3333
3434 private static final String JABREF_GITHUB_RELEASES = "https://api.github.com/repos/JabRef/JabRef/releases" ;
3535
Original file line number Diff line number Diff line change @@ -288,4 +288,10 @@ public void ciSuffixShouldBeRemoved() {
288288 Version v50ci = Version .parse ("5.0-ci.1" );
289289 assertEquals ("5.0" , v50ci .getFullVersion ());
290290 }
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+ }
291297}
You can’t perform that action at this time.
0 commit comments