Browse Source
Merge pull request #14121 from abpframework/salihozkara/docs
Project.ExtraProperties["VersionBranchPrefix"] Null check
pull/14131/head
Engincan VESKE
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs
|
|
@ -369,9 +369,9 @@ namespace Volo.Docs.Pages.Documents.Project |
|
|
return version; |
|
|
return version; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var prefix = Project.ExtraProperties["VersionBranchPrefix"].ToString(); |
|
|
var prefix = Project.ExtraProperties["VersionBranchPrefix"]?.ToString(); |
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(version) || !version.StartsWith(prefix) || version.Length <= prefix.Length) |
|
|
if (string.IsNullOrWhiteSpace(version) || string.IsNullOrWhiteSpace(prefix) || !version.StartsWith(prefix) || version.Length <= prefix.Length) |
|
|
{ |
|
|
{ |
|
|
return version; |
|
|
return version; |
|
|
} |
|
|
} |
|
|
|