Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <git@davidebeatrici.dev>2021-02-08 02:01:03 +0300
committerDavide Beatrici <git@davidebeatrici.dev>2021-02-08 02:01:07 +0300
commit9cc486f24f820fd64999122c1781704e465f7e99 (patch)
tree679f588399364d9c8f7196f13092de8a1c318ee7 /installer/ClientInstaller.cs
parent817d2c1a03cdeb0d951b0460c5c03c504fdeed40 (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.cs2
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];
}