* Check if a lowered, dash-normalized arg (colon-value stripped) is an * unambiguous PowerShell abbreviation of New-Item's -ItemType or -Type param. * Min prefixes: `-it` (avoids ambiguity with other New-Item params), `-ty` * (avoids `-t` colliding with `-Target`).
(p: string)
| 62 | * (avoids `-t` colliding with `-Target`). |
| 63 | */ |
| 64 | function isItemTypeParamAbbrev(p: string): boolean { |
| 65 | return ( |
| 66 | (p.length >= 3 && '-itemtype'.startsWith(p)) || |
| 67 | (p.length >= 3 && '-type'.startsWith(p)) |
| 68 | ) |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Detects New-Item creating a filesystem link (-ItemType SymbolicLink / |
no outgoing calls
no test coverage detected