private/convert/Get-QuotePrefixInternal.ps1
#requires -Version 5 Set-StrictMode -Version Latest function Get-QuotePrefixInternal { [CmdletBinding()] [OutputType([string])] Param ( [string]$InputObject ) if ($InputObject.StartsWith('"')) { return '"' } elseif ($InputObject.StartsWith("'")) { return "'" } return ""; } |