From 66d0b41b6222045f7992e4b4e5f1c4080ad816ba Mon Sep 17 00:00:00 2001 From: JoriPS1 <45468998+JoriPS1@users.noreply.github.com> Date: Thu, 15 Sep 2022 15:53:32 -0400 Subject: [PATCH] Remove ValidateLength from -license_email ValidateLength can only be applied to strings, [mailaddress] makes it through an error. --- SnipeitPS/Public/New-SnipeitLicense.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/SnipeitPS/Public/New-SnipeitLicense.ps1 b/SnipeitPS/Public/New-SnipeitLicense.ps1 index 74ea39a..d688746 100644 --- a/SnipeitPS/Public/New-SnipeitLicense.ps1 +++ b/SnipeitPS/Public/New-SnipeitLicense.ps1 @@ -89,7 +89,6 @@ function New-SnipeitLicense() { [datetime]$expiration_date, - [ValidateLength(1, 120)] [mailaddress]$license_email, [ValidateLength(1, 100)]