瀏覽代碼

Fixes "loose" text from getting lost in search

main
Eric Amodio 1 年之前
父節點
當前提交
06edc1a511
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/git/search.ts

+ 2
- 2
src/git/search.ts 查看文件

@ -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…
取消
儲存