mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
fix(code search): empty mode dropdown when keyword is empty
(cherry picked from commit c53d21965a
)
This commit is contained in:
parent
86a09562fd
commit
c7c7f69f82
2 changed files with 7 additions and 3 deletions
|
@ -78,6 +78,7 @@ func testSearchRepo(t *testing.T, indexer bool) {
|
|||
code_indexer.UpdateRepoIndexer(repo)
|
||||
}
|
||||
|
||||
testSearch(t, "/user2/glob/search?q=", []string{}, indexer)
|
||||
testSearch(t, "/user2/glob/search?q=loren&page=1", []string{"a.txt"}, indexer)
|
||||
testSearch(t, "/user2/glob/search?q=loren&page=1&mode=exact", []string{"a.txt"}, indexer)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue