Browse Source

Fixes stash matching for commit search

e.g. `stash{1}`
main
Eric Amodio 3 years ago
parent
commit
d6f56aaf87
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/git/search.ts

+ 1
- 1
src/git/search.ts View File

@ -52,7 +52,7 @@ export namespace SearchPattern {
]);
const searchOperationRegex =
/(?:(?<op>=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:)\s?(?<value>".+?"|\S+\b))|(?<text>\S+)(?!(?:=|message|@|author|#|commit|\?|file|~|change):)/gi;
/(?:(?<op>=:|message:|@:|author:|#:|commit:|\?:|file:|~:|change:)\s?(?<value>".+?"|\S+\b}?))|(?<text>\S+)(?!(?:=|message|@|author|#|commit|\?|file|~|change):)/gi;
export function fromCommit(ref: string): string;
export function fromCommit(commit: GitRevisionReference): string;

Loading…
Cancel
Save