* Checks if a lowercase parameter name (with leading dash) matches any entry * in the given param list, accounting for PowerShell's prefix-matching behavior * (e.g., -Lit matches -LiteralPath).
(paramLower: string, paramList: string[])
| 770 | * (e.g., -Lit matches -LiteralPath). |
| 771 | */ |
| 772 | function matchesParam(paramLower: string, paramList: string[]): boolean { |
| 773 | for (const p of paramList) { |
| 774 | if ( |
| 775 | p === paramLower || |
| 776 | (paramLower.length > 1 && p.startsWith(paramLower)) |
| 777 | ) { |
| 778 | return true |
| 779 | } |
| 780 | } |
| 781 | return false |
| 782 | } |
| 783 | |
| 784 | /** |
| 785 | * Returns true if a colon-syntax value contains expression constructs that |
no outgoing calls
no test coverage detected