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;