We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ctrl+shift+s
1 parent 3d7698b commit e4ce3acCopy full SHA for e4ce3ac
quickPSReadLine.psm1
@@ -41,9 +41,12 @@ $VaultSearchParameters = @{
41
# WARN: First time I used ScriptBlock
42
$process_string = {
43
param($line)
44
- if ($line -match "^$searchFunction") {
+ $matchesSearchFunction = "rgj|rgo"
45
+ if ($line -match "^($matchesSearchFunction)") {
46
# TODO: further enhanced by adding different flag at this point.
- $SearchWithQuery = "$line -w"
47
+ if($line -notmatch "-w$"){$SearchWithQuery = "$line -w"}
48
+ elseif($line -match "^rgj"){$SearchWithQuery = $line -replace "^rgj","rgo"}
49
+ elseif($line -match "^rgo"){$SearchWithQuery = $line -replace "-w$",""}
50
}
51
else {
52
$SearchWithQuery = "$searchFunction $line"
0 commit comments