initial Commit
This commit is contained in:
15
Private/Test-ConfigurationDataExpression.ps1
Normal file
15
Private/Test-ConfigurationDataExpression.ps1
Normal file
@@ -0,0 +1,15 @@
|
||||
function Test-ConfigurationDataExpression {
|
||||
[CmdletBinding()]
|
||||
Param(
|
||||
[AllowNull()]
|
||||
[string]
|
||||
$Value
|
||||
)
|
||||
|
||||
if([string]::IsNullOrWhiteSpace($Value)){
|
||||
return $false
|
||||
}
|
||||
|
||||
$Trimmed = $Value.Trim()
|
||||
return $Trimmed.StartsWith("[") -and $Trimmed.EndsWith("]")
|
||||
}
|
||||
Reference in New Issue
Block a user