16 lines
308 B
PowerShell
16 lines
308 B
PowerShell
function Test-ConfigurationDataExpression {
|
|
[CmdletBinding()]
|
|
Param(
|
|
[AllowNull()]
|
|
[string]
|
|
$Value
|
|
)
|
|
|
|
if([string]::IsNullOrWhiteSpace($Value)){
|
|
return $false
|
|
}
|
|
|
|
$Trimmed = $Value.Trim()
|
|
return $Trimmed.StartsWith("[") -and $Trimmed.EndsWith("]")
|
|
}
|