mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-04 13:50:39 +00:00
ui(code-search): fix to use CodeSearchMode
Drop unused IsFuzzy and IsRegExp
This commit is contained in:
parent
7068456d20
commit
d2efdda911
5 changed files with 2 additions and 6 deletions
|
@ -45,7 +45,6 @@ func Code(ctx *context.Context) {
|
|||
ctx.Data["Keyword"] = keyword
|
||||
ctx.Data["Language"] = language
|
||||
ctx.Data["CodeSearchOptions"] = []string{"exact", "fuzzy"}
|
||||
ctx.Data["IsFuzzy"] = isFuzzy
|
||||
if isFuzzy {
|
||||
ctx.Data["CodeSearchMode"] = "fuzzy"
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue