diff options
author | Radosław Piliszek <radek@piliszek.it> | 2024-08-12 20:57:42 +0200 |
---|---|---|
committer | Radosław Piliszek <radek@piliszek.it> | 2024-09-16 16:20:40 +0200 |
commit | 6d6116857ca4d8167d2d4e34f65d96bc23cf6bc7 (patch) | |
tree | 2884d3980c0c30ffb02ebf04af27bc9620fdef35 /services/wiki | |
parent | Merge pull request 'Update renovate to v38.80.0 (forgejo)' (#5332) from renov... (diff) | |
download | forgejo-6d6116857ca4d8167d2d4e34f65d96bc23cf6bc7.tar.xz forgejo-6d6116857ca4d8167d2d4e34f65d96bc23cf6bc7.zip |
git-grep: support regexp
Diffstat (limited to 'services/wiki')
-rw-r--r-- | services/wiki/wiki.go | 2 |
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, |