瀏覽代碼

alpha/beta/rc/milestone releases are now valid versions!

tags/0.6.3m1rc2
Chris Smith 15 年之前
父節點
當前提交
6f68b2cd7f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/com/dmdirc/updater/Version.java

+ 1
- 1
src/com/dmdirc/updater/Version.java 查看文件

@@ -43,7 +43,7 @@ public class Version implements Comparable<Version> {
43 43
         if (version.matches("^[0-9]+$")) {
44 44
             this.intVersion = Integer.parseInt(version);
45 45
             this.strVersion = null;
46
-        } else if (version.matches("^[0-9]+(\\.[0-9]+)*(\\-[0-9]+\\-g[a-z0-9]{7})?$")) {
46
+        } else if (version.matches("^[0-9]+(\\.[0-9]+)*((a|b|rc|m)[0-9]+)*(\\-[0-9]+\\-g[a-z0-9]{7})?$")) {
47 47
             this.intVersion = Integer.MIN_VALUE;
48 48
             this.strVersion = version;
49 49
         } else {

Loading…
取消
儲存