mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Add datatype to param()
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param($Address = "")
|
||||
param([string]$Address = "")
|
||||
|
||||
function IsIPv6AddressValid { param([string]$IP)
|
||||
$IPv4Regex = '(((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2}))'
|
||||
|
Reference in New Issue
Block a user