From 21857a407bb1a7f7acf8743b444e04676e3dc017 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sun, 6 Oct 2019 17:22:27 -0600 Subject: [PATCH] Address PR feedback - case-sensitive match on -S --- src/GitTabExpansion.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitTabExpansion.ps1 b/src/GitTabExpansion.ps1 index 3cafade01..9da270bf1 100644 --- a/src/GitTabExpansion.ps1 +++ b/src/GitTabExpansion.ps1 @@ -396,7 +396,7 @@ function GitTabExpansionInternal($lastBlock, $GitStatus = $null) { } # Handles git restore - "^restore(?:.* (?(?:-S|--staged))|.*) (?\S*)$" { + "^restore(?:.* (?(?:(?-i)-S|--staged))|.*) (?\S*)$" { gitRestoreFiles $GitStatus $matches['files'] $matches['staged'] }