summaryrefslogtreecommitdiffstats
path: root/services/wiki
diff options
context:
space:
mode:
authorRadosław Piliszek <radek@piliszek.it>2024-08-12 20:57:42 +0200
committerRadosław Piliszek <radek@piliszek.it>2024-09-16 16:20:40 +0200
commit6d6116857ca4d8167d2d4e34f65d96bc23cf6bc7 (patch)
tree2884d3980c0c30ffb02ebf04af27bc9620fdef35 /services/wiki
parentMerge pull request 'Update renovate to v38.80.0 (forgejo)' (#5332) from renov... (diff)
downloadforgejo-6d6116857ca4d8167d2d4e34f65d96bc23cf6bc7.tar.xz
forgejo-6d6116857ca4d8167d2d4e34f65d96bc23cf6bc7.zip
git-grep: support regexp
Diffstat (limited to 'services/wiki')
-rw-r--r--services/wiki/wiki.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/wiki/wiki.go b/services/wiki/wiki.go
index 24779d41e0..e1b37d1e7f 100644
--- a/services/wiki/wiki.go
+++ b/services/wiki/wiki.go
@@ -417,7 +417,7 @@ func SearchWikiContents(ctx context.Context, repo *repo_model.Repository, keywor
return git.GrepSearch(ctx, gitRepo, keyword, git.GrepOptions{
ContextLineNumber: 0,
- IsFuzzy: true,
+ Mode: git.FixedAnyGrepMode,
RefName: repo.GetWikiBranchName(),
MaxResultLimit: 10,
MatchesPerFile: 3,