mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
17 lines
274 B
PowerShell
17 lines
274 B
PowerShell
|
|
function Get-IcingaMaxTextLength()
|
||
|
|
{
|
||
|
|
param (
|
||
|
|
[array]$TextArray = ''
|
||
|
|
);
|
||
|
|
|
||
|
|
[int]$MaxLength = 0;
|
||
|
|
|
||
|
|
foreach ($text in $TextArray) {
|
||
|
|
if ($MaxLength -lt $text.Length) {
|
||
|
|
$MaxLength = $text.Length;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return $MaxLength;
|
||
|
|
}
|