From 506c141808831f997b605c9204b8d4696b8e9432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Tue, 27 Jul 2021 12:44:22 +0800 Subject: [PATCH] =?UTF-8?q?tagName=E6=94=AF=E6=8C=81v=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Upgrade/GithubRelease.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FastGithub.Upgrade/GithubRelease.cs b/FastGithub.Upgrade/GithubRelease.cs index 6eef851..6020c40 100644 --- a/FastGithub.Upgrade/GithubRelease.cs +++ b/FastGithub.Upgrade/GithubRelease.cs @@ -49,7 +49,8 @@ namespace FastGithub.Upgrade /// public ProductionVersion GetProductionVersion() { - return ProductionVersion.Parse(this.TagName); + var version = this.TagName.TrimStart('v', 'V'); + return ProductionVersion.Parse(version); } public override string ToString()