Browse Source

Fixes "loose" text from getting lost in search

main
Eric Amodio 1 year ago
parent
commit
06edc1a511
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/git/search.ts

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

@ -123,8 +123,8 @@ export function parseSearchQuery(search: SearchQuery): Map
({ value, text } = match.groups);
if (text) {
op = text === '@me' ? 'author:' : isSha(text) ? 'commit:' : 'message:';
if (!normalizeSearchOperatorsMap.has(op)) {
if (!normalizeSearchOperatorsMap.has(text.trim() as SearchOperators)) {
op = text === '@me' ? 'author:' : isSha(text) ? 'commit:' : 'message:';
value = text;
}
}

Loading…
Cancel
Save