From d6f56aaf8782089e3f6122fe45ff2bad942fe657 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 18 Nov 2021 00:26:54 -0500 Subject: [PATCH] Fixes stash matching for commit search e.g. `stash{1}` --- src/git/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/search.ts b/src/git/search.ts index c6ec18c..271d0e6 100644 --- a/src/git/search.ts +++ b/src/git/search.ts @@ -52,7 +52,7 @@ export namespace SearchPattern { ]); const searchOperationRegex = - /(?:(?=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:)\s?(?".+?"|\S+\b))|(?\S+)(?!(?:=|message|@|author|#|commit|\?|file|~|change):)/gi; + /(?:(?=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:)\s?(?".+?"|\S+\b}?))|(?\S+)(?!(?:=|message|@|author|#|commit|\?|file|~|change):)/gi; export function fromCommit(ref: string): string; export function fromCommit(commit: GitRevisionReference): string;