initial Commit

This commit is contained in:
Torsten Brendgen
2026-06-27 00:36:04 +02:00
commit 4b83abc7f2
27 changed files with 1702 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
function Normalize-ConfigurationDataSeparator {
[CmdletBinding()]
Param(
[AllowNull()]
[string]
$Value,
[Parameter(Mandatory=$true)]
[string]
$Separator
)
if($null -eq $Value){
return ""
}
if([string]::IsNullOrEmpty($Separator)){
return $Value
}
$EscapedSeparator = [regex]::Escape($Separator)
$Normalized = [regex]::Replace($Value, "($EscapedSeparator){2,}", $Separator)
$Normalized = $Normalized.Trim()
$Normalized = [regex]::Replace($Normalized, "^$EscapedSeparator|$EscapedSeparator$", "")
return $Normalized
}