Skip to content

Commit d6f56aa

Browse files
committed
Fixes stash matching for commit search
e.g. `stash{1}`
1 parent 0742a08 commit d6f56aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export namespace SearchPattern {
5252
]);
5353

5454
const searchOperationRegex =
55-
/(?:(?<op>=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:)\s?(?<value>".+?"|\S+\b))|(?<text>\S+)(?!(?:=|message|@|author|#|commit|\?|file|~|change):)/gi;
55+
/(?:(?<op>=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:)\s?(?<value>".+?"|\S+\b}?))|(?<text>\S+)(?!(?:=|message|@|author|#|commit|\?|file|~|change):)/gi;
5656

5757
export function fromCommit(ref: string): string;
5858
export function fromCommit(commit: GitRevisionReference): string;

0 commit comments

Comments
 (0)