Ver código fonte

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

tags/0.6.3m1rc2
Chris Smith 15 anos atrás
pai
commit
6f68b2cd7f
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/com/dmdirc/updater/Version.java

+ 1
- 1
src/com/dmdirc/updater/Version.java Ver arquivo

43
         if (version.matches("^[0-9]+$")) {
43
         if (version.matches("^[0-9]+$")) {
44
             this.intVersion = Integer.parseInt(version);
44
             this.intVersion = Integer.parseInt(version);
45
             this.strVersion = null;
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
             this.intVersion = Integer.MIN_VALUE;
47
             this.intVersion = Integer.MIN_VALUE;
48
             this.strVersion = version;
48
             this.strVersion = version;
49
         } else {
49
         } else {

Carregando…
Cancelar
Salvar