diff --git a/resources/modules/Get-CreditCardData.ps1 b/resources/modules/Get-CreditCardData.ps1 index caecae77..0d189029 100644 --- a/resources/modules/Get-CreditCardData.ps1 +++ b/resources/modules/Get-CreditCardData.ps1 @@ -13,7 +13,7 @@ Function Get-CreditCardData { [string]$path = $(throw "-path is required";) ) - $Excel = New-Object -ComObject Excel.Application + #$Excel = New-Object -ComObject Excel.Application $REGEX = [regex]"(?im)(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})" $REGEX2 = [regex]"^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$"