diff options
author | Davide Beatrici <git@davidebeatrici.dev> | 2021-02-08 02:01:03 +0300 |
---|---|---|
committer | Davide Beatrici <git@davidebeatrici.dev> | 2021-02-08 02:01:07 +0300 |
commit | 9cc486f24f820fd64999122c1781704e465f7e99 (patch) | |
tree | 679f588399364d9c8f7196f13092de8a1c318ee7 /installer/ClientInstaller.cs | |
parent | 817d2c1a03cdeb0d951b0460c5c03c504fdeed40 (diff) |
FIX(installer): Change version regex so that it accepts multiple digits
Now that we reached build number 10 the current expression is not valid anymore.
As a result, the version is not set and the build fails.
This commit rewrites the regex so that it accepts multiple digits and is also shorter.
Co-Authored-By: Jan Klass <kissaki@posteo.de>
Diffstat (limited to 'installer/ClientInstaller.cs')
-rw-r--r-- | installer/ClientInstaller.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/ClientInstaller.cs b/installer/ClientInstaller.cs index 9dac29965..c07d4dfb7 100644 --- a/installer/ClientInstaller.cs +++ b/installer/ClientInstaller.cs @@ -172,7 +172,7 @@ class BuildInstaller bool isAllLangs = false; for (int i = 0; i < args.Length; i++) { - if (args[i] == "--version" && Regex.IsMatch(args[i + 1], @"^[0-9]\.[0-9]\.[0-9]\.[0-9]$")) { + if (args[i] == "--version" && Regex.IsMatch(args[i + 1], @"^([0-9]+\.){3}[0-9]+$")) { version = args[i + 1]; } |