[powershell-experimental] ValidatePattern with double-quote (") throws-exception (#5956)

* ValidatePattern having double quote(") throws exception on running Build.ps1

* fix tab with space

Co-authored-by: Ghufran Zahidi <gzahidi@cisco.com>
This commit is contained in:
Ghufz
2020-04-17 20:38:48 +05:30
committed by GitHub
parent 896867b5e7
commit 0adc20f114
3 changed files with 25 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ function Initialize-PSUser {
[String]
${Email},
[Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
[ValidatePattern("[""A-Z]+-[0-9][0-9]")]
[String]
${Password},
[Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]