lib/Str/Has.ps1
function Has-2Dash ([string]$s) { Has-Sub $s "--" } function Has-3Dash ([string]$s) { Has-Sub $s "---" } function Has-Spc ([string]$s) { $s -match '\S+'} function Has-Sub ([string]$s,[string]$sub) { (Instr $s $sub) -gt 0 } |