Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ bool NeedInstall ()
return curVersion > maxVersion;
}

static readonly Regex VersionMatch = new Regex (@"(?<version>\d+\.\d+(\.\d+(\.\d+)?)?)");
static readonly Regex VersionMatch = new Regex (@"(?<version>\d+(\.\d+(\.\d+(\.\d+)?)?)?)");

Version GetCurrentVersion ()
{
Expand Down Expand Up @@ -167,6 +167,9 @@ internal static Version GetProgramVersion (string hostOS, string command)
if (!m.Success)
return;
curVersion = m.Groups ["version"].Value;
if (!curVersion.Contains (".")) {
curVersion += ".0";
}
};
p.Start ();
p.BeginOutputReadLine ();
Expand Down