This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 1ae99998cc8c3ddc8c8f470ff7bb117d21f05a3f Author: Shad Storhaug <[email protected]> AuthorDate: Wed Mar 24 09:43:50 2021 +0700 docs.ps1: Added validation for LuceneNetVersion argument --- websites/apidocs/docs.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/websites/apidocs/docs.ps1 b/websites/apidocs/docs.ps1 index 4ee184d..2e22aab 100644 --- a/websites/apidocs/docs.ps1 +++ b/websites/apidocs/docs.ps1 @@ -19,7 +19,8 @@ param ( [Parameter(Mandatory)] - [string] $LuceneNetVersion, # TODO: Validate this with regex + [ValidatePattern('\d+?\.\d+?\.\d+?(?:\.\d+?)?(?:-\w+)?')] + [string] $LuceneNetVersion, [switch] $ServeDocs = $false, [switch] $Clean = $false, [switch] $DisableMetaData = $false,
